Skip to content

Commit f92a2e3

Browse files
committed
Fix missed quoting in E722 check
The warning looks fairly odd: E722 do not use bare except' change this to E722 do not use bare 'except'
1 parent 6faef2b commit f92a2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ def bare_except(logical_line, noqa):
12801280
regex = re.compile(r"except\s*:")
12811281
match = regex.match(logical_line)
12821282
if match:
1283-
yield match.start(), "E722 do not use bare except'"
1283+
yield match.start(), "E722 do not use bare 'except'"
12841284

12851285

12861286
@register_check

0 commit comments

Comments
 (0)