py3: add exception class to except clause
This commit is contained in:
parent
3fdf6f29d7
commit
b20d15d123
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue