From 68d9199a19da53c6ea9677a0503a7fc196977be6 Mon Sep 17 00:00:00 2001 From: Julien Iguchi-Cartigny Date: Sun, 6 Jul 2014 12:23:39 +0200 Subject: [PATCH] fixing bad formed exception in Utility --- wstools/Utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wstools/Utility.py b/wstools/Utility.py index c589875..251be2d 100644 --- a/wstools/Utility.py +++ b/wstools/Utility.py @@ -665,7 +665,7 @@ class DOM: try: result = self.loadDocument(file) - except Exception, ex: + except Exception as ex: file.close() raise ParseError(('Failed to load document %s' % url,) + ex.args) else: