Skip to content
Snippets Groups Projects
Commit 61b22c30 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't assign exception to a variable that we do not use.

parent acea1e89
Branches
Tags
No related merge requests found
......@@ -96,7 +96,7 @@ class XMLFile(File):
with open(file.path) as f:
try:
file.parsed = _parse(f)
except (ExpatError, UnicodeDecodeError) as e:
except (ExpatError, UnicodeDecodeError):
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment