another fix for downloading error message

This commit is contained in:
Damien Elmes 2012-09-24 10:25:32 +09:00
parent 94252dd59c
commit 028e4c11fb

View file

@ -59,10 +59,11 @@ class Downloader(QThread):
resp, cont = con.request( resp, cont = con.request(
aqt.appShared + "download/%d" % self.code) aqt.appShared + "download/%d" % self.code)
except Exception, e: except Exception, e:
exc = traceback.format_exc()
try: try:
self.error = unicode(e[0], "utf8", "ignore") self.error = unicode(e[0], "utf8", "ignore")
except: except:
self.error = traceback.format_exc() self.error = exc
return return
finally: finally:
remHook("httpRecv", recvEvent) remHook("httpRecv", recvEvent)