Skip to content

Commit f558599

Browse files
committed
added error specifics
1 parent bcb8d73 commit f558599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeepLabStream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def set_up_experiment():
436436
try:
437437
experiment_class = getattr(mod, EXP_NAME)
438438
experiment = experiment_class()
439-
except:
439+
except AttributeError:
440440
raise ValueError(f'Experiment: {EXP_NAME} not in experiments.py.')
441441

442442
return experiment

0 commit comments

Comments
 (0)