Skip to content

Commit 5780f81

Browse files
committed
be more rebust w.r.t. different versions of python
1 parent fdf86ff commit 5780f81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rubin_sim/maf/chimera_progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def run_chimera_batches(
216216
try:
217217
bdict = batch_func(run_name=run_name)
218218
except TypeError as batch_error:
219-
if not str(batch_error).endswith("got an unexpected keyword argument 'run_name'"):
219+
if "got an unexpected keyword argument 'run_name'" not in str(batch_error):
220220
# we got some other exception, just pass it along.
221221
raise
222222
# We have a batch that uses runName instead of run_name.

0 commit comments

Comments
 (0)