mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
decrease timeout to 30; httplib2 retries for us
This commit is contained in:
parent
4b190c3586
commit
593e45a9bb
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ MIME_BOUNDARY = "Anki-sync-boundary"
|
||||||
SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/"
|
SYNC_URL = os.environ.get("SYNC_URL") or "https://ankiweb.net/sync/"
|
||||||
SYNC_VER = 0
|
SYNC_VER = 0
|
||||||
HTTP_CERTS = os.path.join(os.path.dirname(__file__), "ankiweb.certs")
|
HTTP_CERTS = os.path.join(os.path.dirname(__file__), "ankiweb.certs")
|
||||||
HTTP_TIMEOUT = 60
|
HTTP_TIMEOUT = 30
|
||||||
|
|
||||||
# deck schema
|
# deck schema
|
||||||
SCHEMA_VERSION = 1
|
SCHEMA_VERSION = 1
|
||||||
|
|
|
@ -585,7 +585,7 @@ class MediaSyncer(object):
|
||||||
c = self.mediaSanity()
|
c = self.mediaSanity()
|
||||||
if c != s:
|
if c != s:
|
||||||
raise Exception("""\
|
raise Exception("""\
|
||||||
Sanity check failed. Please copy and paste the text below:\n%s\n%s""" %
|
Media sanity check failed. Please copy and paste the text below:\n%s\n%s""" %
|
||||||
(c, s))
|
(c, s))
|
||||||
return "success"
|
return "success"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue