mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
another fix for downloading error message
This commit is contained in:
parent
94252dd59c
commit
028e4c11fb
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue