Skip to content

Commit 2b3dc2f

Browse files
committed
don't use bare except in test_run_shell_cmd_with_hooks
1 parent 0906b8e commit 2b3dc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ def post_run_shell_cmd_hook(cmd, *args, **kwargs):
21312131
# we just want to verify that the post_run_shell_cmd_hook has run
21322132
try:
21332133
run_shell_cmd("false")
2134-
except:
2134+
except RunShellCmdError:
21352135
pass
21362136
stdout = self.get_stdout()
21372137

0 commit comments

Comments
 (0)