mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
make sure to catch unknown errors during sync
This commit is contained in:
parent
e6a3df771a
commit
88cf743c8a
1 changed files with 5 additions and 2 deletions
|
|
@ -258,8 +258,11 @@ class SyncThread(QThread):
|
|||
try:
|
||||
ret = self.client.sync()
|
||||
except Exception, e:
|
||||
if "Unable to find the server" in unicode(e):
|
||||
err = unicode(e)
|
||||
if "Unable to find the server" in err:
|
||||
self.fireEvent("offline")
|
||||
else:
|
||||
self.fireEvent("error", err)
|
||||
return
|
||||
if ret == "badAuth":
|
||||
return self.fireEvent("badAuth")
|
||||
|
|
|
|||
Loading…
Reference in a new issue