Skip to content

Commit c5c0b80

Browse files
authored
Merge pull request #752 from martinRenou/json_packer_handle_typeerror
2 parents b450496 + def9a74 commit c5c0b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: jupyter_client/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def json_packer(obj):
100100
ensure_ascii=False,
101101
allow_nan=False,
102102
).encode("utf8")
103-
except ValueError as e:
103+
except (TypeError, ValueError) as e:
104104
# Fallback to trying to clean the json before serializing
105105
packed = json.dumps(
106106
json_clean(obj),

0 commit comments

Comments
 (0)