py3: add exception class to except clause

This commit is contained in:
Benjamin Dauvergne 2019-03-28 17:40:31 +01:00
parent 3fdf6f29d7
commit b20d15d123
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class Saga(object):
response.content[:1024])
try:
et = ET.fromstring(response.content)
except:
except Exception:
return None, u'SAGA invalid XML content: %r' % response.content[:1024]
content_node = et.find('.//{%s}%s' % (self.ns, content_tag))
if content_node is None: