mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
catch bulk upload failures
This commit is contained in:
parent
3d1523527c
commit
dbb14988ea
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ class Sync(QThread):
|
|||
client.server = BulkMediaSyncerProxy(self.user, self.pwd)
|
||||
client.server.deckName = deckname
|
||||
client.progressCallback = self.bulkCallback
|
||||
client.sync()
|
||||
try:
|
||||
client.sync()
|
||||
except:
|
||||
self.emit(SIGNAL("bulkSyncFailed"))
|
||||
self.emit(SIGNAL("closeSyncProgress"))
|
||||
|
||||
def bulkCallback(self, *args):
|
||||
|
|
Loading…
Reference in a new issue