Skip to content
Snippets Groups Projects
Commit f92a2e36 authored by Dirk Mueller's avatar Dirk Mueller
Browse files

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'
parent 6faef2bf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1280,7 +1280,7 @@ def bare_except(logical_line, noqa):
regex = re.compile(r"except\s*:")
match = regex.match(logical_line)
if match:
yield match.start(), "E722 do not use bare except'"
yield match.start(), "E722 do not use bare 'except'"
 
 
@register_check
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment