Skip to content

Commit

Permalink
Merge branch 'fix-jupyter-valueerror'
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Aug 28, 2023
2 parents d1734b3 + 748843c commit 99a9b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpymad/madx.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self, libmadx=None, command_log=None, stdout=None,
if callable(stdout):
try:
stdout(b'')
except TypeError:
except (TypeError, ValueError):
stdout = TextCallback(stdout)
Popen_args['stdout'] = \
subprocess.PIPE if callable(stdout) else stdout
Expand Down

0 comments on commit 99a9b66

Please sign in to comment.