Skip to content

Commit 9114d81

Browse files
Update src/utils.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 8cbd939 commit 9114d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def default(self, o):
9999
logger.exception("Error handling Flight object corruption")
100100
try:
101101
solution = np.array(obj.solution)
102-
except Exception as e:
102+
except (AttributeError, TypeError, ValueError):
103103
return super().default(obj) # Fall back to parent encoder
104104
size = len(solution)
105105
if size > 25:

0 commit comments

Comments
 (0)