diff --git a/subcmds/sync.py b/subcmds/sync.py index a99d7e74..dc6604cc 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -925,7 +925,10 @@ class PersistentTransport(xmlrpc.client.Transport): tmpcookiefile.flush() cookiejar = cookielib.MozillaCookieJar(tmpcookiefile.name) - cookiejar.load() + try: + cookiejar.load() + except cookielib.LoadError: + cookiejar = cookielib.CookieJar() finally: tmpcookiefile.close() else: