mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
don't fail silently
This commit is contained in:
parent
9c8af9d64f
commit
8af4c1200f
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ createDeck(name): create a deck on the server
|
|||
__docformat__ = 'restructuredtext'
|
||||
|
||||
import zlib, re, urllib, urllib2, socket, simplejson, time
|
||||
import os, base64, httplib
|
||||
import os, base64, httplib, sys
|
||||
from datetime import date
|
||||
import anki, anki.deck, anki.cards
|
||||
from anki.errors import *
|
||||
|
@ -775,6 +775,7 @@ where media.id in %s""" % sids, now=time.time())
|
|||
try:
|
||||
self.updateOneWayCards(payload['cards'])
|
||||
except KeyError:
|
||||
sys.stderr.write("Error in one way sync\n")
|
||||
t = 0
|
||||
# update sync time
|
||||
self.deck.s.statement(
|
||||
|
|
Loading…
Reference in a new issue