flake8: fix E722

parent 37f46399
...@@ -304,7 +304,7 @@ def process_file(path, qmin, prog_cfgs): ...@@ -304,7 +304,7 @@ def process_file(path, qmin, prog_cfgs):
'test working directory %s', tmpdir) 'test working directory %s', tmpdir)
else: else:
shutil.rmtree(tmpdir) shutil.rmtree(tmpdir)
except: except Exception:
logging.getLogger('deckard.hint').info( logging.getLogger('deckard.hint').info(
'test failed, inspect working directory %s', tmpdir) 'test failed, inspect working directory %s', tmpdir)
raise raise
...@@ -321,7 +321,7 @@ def setup_daemons(tmpdir, prog_cfgs, template_ctx, ta_files): ...@@ -321,7 +321,7 @@ def setup_daemons(tmpdir, prog_cfgs, template_ctx, ta_files):
daemons.append({'proc': daemon_proc, 'cfg': prog_cfg}) daemons.append({'proc': daemon_proc, 'cfg': prog_cfg})
try: try:
conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY']) conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY'])
except: except: # noqa -- bare except might be valid here?
daemon_proc.terminate() daemon_proc.terminate()
raise raise
return daemons return daemons
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment