Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pycodestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ def bare_except(logical_line, noqa):

Okay: except Exception:
Okay: except BaseException:
E722: except:
E722: except Exception:
"""
if noqa:
return
Expand Down
6 changes: 3 additions & 3 deletions testing/data/E72.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def func_histype(a, b, c):
#: E722
try:
pass
except:
except Exception:
pass
#: E722
try:
pass
except Exception:
pass
except:
except Exception:
pass
#: E722 E203 E271
try:
Expand All @@ -73,7 +73,7 @@ def func_histype(a, b, c):
fake_code = """"
try:
do_something()
except:
except Exception:
pass
"""
try:
Expand Down
2 changes: 1 addition & 1 deletion testing/data/E90.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
while True:
try:
pass
except:
except Exception:
print 'Whoops'
#: Okay

Expand Down
Loading