mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 00:49:19 +00:00
avoid unneeded cookie open
This commit is contained in:
@@ -40,6 +40,9 @@ class CookieHandler:
|
||||
print("no cookie imported")
|
||||
raise FileNotFoundError
|
||||
|
||||
if os.path.exists(self.COOKIE_PATH):
|
||||
return self.COOKIE_PATH
|
||||
|
||||
with open(self.COOKIE_PATH, "w", encoding="utf-8") as cookie_file:
|
||||
cookie_file.write(cookie)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user