Skip to content

Commit dccc834

Browse files
committed
fix: specify exception type in DataCollector to improve error handling
1 parent 073bb90 commit dccc834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesa_frames/concrete/datacollector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def _is_str_collection(x: Any) -> bool:
240240
"Registry-level reporter dict values must be Series or DataFrame"
241241
)
242242
called = True
243-
except Exception:
243+
except TypeError:
244244
called = False
245245

246246
if not called:

0 commit comments

Comments
 (0)