Fix linting E722: do not use bare except

This commit is contained in:
Bruno Oliveira
2017-11-04 13:21:34 -02:00
parent 03829fde8a
commit b11640c1eb
10 changed files with 15 additions and 18 deletions

View File

@@ -115,7 +115,7 @@ class TestCaseFunction(Function):
fail("".join(values), pytrace=False)
except (fail.Exception, KeyboardInterrupt):
raise
except:
except: # noqa
fail("ERROR: Unknown Incompatible Exception "
"representation:\n%r" % (rawexcinfo,), pytrace=False)
except KeyboardInterrupt: