diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2014-06-19 22:15:00 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-06-19 22:15:48 +0200 |
commit | 62c9af4ddb81d3ee02c0863d0eda8e8e122a48ca (patch) | |
tree | b9861f40f11d8cd38b96a347f5d76380bbfa71a6 | |
parent | deb57d70c0dab10ce35abf972b0dbe6f33f8c807 (diff) |
Only catch normal exceptions
-rw-r--r-- | pskc/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pskc/__init__.py b/pskc/__init__.py index 2ed644e..d837c88 100644 --- a/pskc/__init__.py +++ b/pskc/__init__.py @@ -75,7 +75,7 @@ class PSKC(object): from pskc.parse import etree try: tree = etree.parse(filename) - except: + except Exception: raise ParseError('Error parsing XML') self.parse(tree.getroot()) else: |