mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Listen to pylint and mypy
This commit is contained in:
parent
ce77995c8f
commit
4ef0ffe3bf
9 changed files with 87 additions and 197 deletions
|
|
@ -35,12 +35,12 @@ class CookieJar:
|
|||
return
|
||||
|
||||
try:
|
||||
LOGGER.info(f"Loading old cookies from {self._cookies.filename}")
|
||||
LOGGER.info("Loading old cookies from %s", self._cookies.filename)
|
||||
self._cookies.load(ignore_discard=True)
|
||||
except (FileNotFoundError, LoadError):
|
||||
LOGGER.warning(
|
||||
f"No valid cookie file found at {self._cookies.filename}, "
|
||||
"continuing with no cookies"
|
||||
"No valid cookie file found at %s, continuing with no cookies",
|
||||
self._cookies.filename
|
||||
)
|
||||
|
||||
def save_cookies(self, reason: Optional[str] = None) -> None:
|
||||
|
|
@ -51,7 +51,7 @@ class CookieJar:
|
|||
if reason is None:
|
||||
LOGGER.info("Saving cookies")
|
||||
else:
|
||||
LOGGER.info(f"Saving cookies ({reason})")
|
||||
LOGGER.info("Saving cookies (%s)", reason)
|
||||
|
||||
# TODO figure out why ignore_discard is set
|
||||
# TODO possibly catch a few more exceptions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue