From 62c9af4ddb81d3ee02c0863d0eda8e8e122a48ca Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 19 Jun 2014 22:15:00 +0200 Subject: Only catch normal exceptions --- pskc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3