You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.info("%s: Removed cookies saved at '%s'", self, p)
130
136
131
137
defsave_cookies(self) ->None:
132
-
"""Write the cookies of the Wiki object to disk, so they can be used in the future.
133
-
134
-
Raises:
135
-
ValueError: If a directory for cookies was not specified (i.e. set to `None`) when initializing this Wiki.
136
-
"""
137
-
ifnot (p:=self._cookie_path()):
138
-
log.warning("No cookie path is specified, unable to save cookies")
138
+
"""Write the cookies of the Wiki object to disk, so they can be used in the future. Does nothing if `self.cookie_jar` is set to `None`. Raises `RuntimeError` if the `Wiki` is not logged in."""
139
+
ifnotself.cookie_jar:
139
140
return
140
141
141
-
ifnotself.is_logged_in:
142
-
log.warning("%s: not logged in, no cookies to save", self)
0 commit comments