Bug fix
authorJakob <jakob@jcornell.net>
Sun, 1 Dec 2019 00:27:58 +0000 (18:27 -0600)
committerJakob <jakob@jcornell.net>
Sun, 1 Dec 2019 00:27:58 +0000 (18:27 -0600)
auth.py

diff --git a/auth.py b/auth.py
index db0fd7c95d49ca8fac4d01a3491a94ccb492540a..fd0194d6390593c86b3a6253bb7ce7a9a1b98bf1 100644 (file)
--- 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()