Fix error handling

This commit is contained in:
Sambhav Kothari
2017-07-13 16:34:09 +05:30
parent 22c307693f
commit 31c63efe5e

View File

@@ -249,8 +249,8 @@ class WebService(QtCore.QObject):
else:
try:
document = response_parser(reply)
except TypeError as e:
log.error("Unable to parse the response. %s" % e.message)
except Exception as e:
log.error("Unable to parse the response. %s", e)
document = reply.readAll()
finally:
handler(document, reply, error)