Skip to content

Commit 6282e68

Browse files
Fix bare except clause in msgpack/fallback.py
Catch specific exceptions during packing to improve error handling.
1 parent c6b4a48 commit 6282e68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

msgpack/fallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def _pack(
806806
def pack(self, obj):
807807
try:
808808
self._pack(obj)
809-
except:
809+
except Exception:
810810
self._buffer = BytesIO() # force reset
811811
raise
812812
if self._autoreset:

0 commit comments

Comments
 (0)