Skip to content

Commit b2b91fc

Browse files
committed
Typo in except statement
1 parent 5b6d963 commit b2b91fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/talk_python_cli/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def display_json(content: str) -> None:
6868
"""Output JSON content — pretty-printed if on a TTY, raw otherwise."""
6969
try:
7070
data = json.loads(content)
71-
except json.JSONDecodeError, TypeError:
71+
except (json.JSONDecodeError, TypeError):
7272
# Server may have returned Markdown even though JSON was requested;
7373
# fall back to printing the raw text.
7474
console.print(content)

0 commit comments

Comments
 (0)