Skip to content

Commit

Permalink
Only catch normal exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdejong committed Jun 19, 2014
1 parent deb57d7 commit 62c9af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pskc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, filename=None):
from pskc.parse import etree
try:
tree = etree.parse(filename)
except:
except Exception:
raise ParseError('Error parsing XML')
self.parse(tree.getroot())
else:
Expand Down

0 comments on commit 62c9af4

Please sign in to comment.