Skip to content

Commit

Permalink
flake8: fix E722
Browse files Browse the repository at this point in the history
  • Loading branch information
nicki-krizek committed Oct 25, 2018
1 parent 37f4639 commit 5d25d83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deckard.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def process_file(path, qmin, prog_cfgs):
'test working directory %s', tmpdir)
else:
shutil.rmtree(tmpdir)
except:
except Exception:
logging.getLogger('deckard.hint').info(
'test failed, inspect working directory %s', tmpdir)
raise
Expand All @@ -321,7 +321,7 @@ def setup_daemons(tmpdir, prog_cfgs, template_ctx, ta_files):
daemons.append({'proc': daemon_proc, 'cfg': prog_cfg})
try:
conncheck_daemon(daemon_proc, prog_cfg, template_ctx['_SOCKET_FAMILY'])
except:
except: # noqa -- bare except might be valid here?
daemon_proc.terminate()
raise
return daemons
Expand Down

0 comments on commit 5d25d83

Please sign in to comment.