Skip to content

Commit 49734fe

Browse files
committed
fix: classify_blob_data widens the except list unnecessarily
1 parent b2352c8 commit 49734fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/cli_chat_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def classify_blob_data(data: bytes) -> tuple[dict | None, list[str]]:
9191
msg = json.loads(data.decode("utf-8"))
9292
if isinstance(msg, dict) and "role" in msg:
9393
return msg, []
94-
except (UnicodeDecodeError, json.JSONDecodeError, TypeError):
94+
except (UnicodeDecodeError, json.JSONDecodeError):
9595
pass
9696
return None, _extract_blob_refs(data)
9797

0 commit comments

Comments
 (0)