Skip to content

Commit

Permalink
im never gonna learn my lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
jbial committed Jan 6, 2025
1 parent 71ffaa1 commit 9281ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dysts/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ def _compute_trajectory(
]

silent_errors = kwargs.pop("_silent_errors", False)
logger = kwargs.pop("logger", None)

try:
traj = sys.make_trajectory(n, **kwargs)
except Exception as exception:
logger = kwargs.pop("logger", None)
if logger is not None:
logger.error(f"Error in {sys.name}: {exception}")

Expand Down

0 comments on commit 9281ba0

Please # to comment.