From: Jakob Date: Sun, 1 Dec 2019 00:27:58 +0000 (-0600) Subject: Bug fix X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=674f65306f043729ec30b99dc4ec6018a8fe00d4;p=bb-sync-api.git Bug fix --- diff --git a/auth.py b/auth.py index db0fd7c..fd0194d 100644 --- a/auth.py +++ b/auth.py @@ -310,6 +310,8 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor): with self.parent.open(req) as resp: resp.read() + self.cookiejar.save() + def http_error_401(self, request, fp, code, msg, headers): LOGGER.info("Session cookies missing or expired. Logging in…") self.log_in()