fix FileNotFoundError in cookie hide

This commit is contained in:
simon
2022-04-30 18:34:28 +07:00
parent 088e87bccf
commit 487c81d50b

View File

@@ -46,7 +46,7 @@ class CookieHandler:
"""hide cookie file if not in use"""
try:
os.remove(self.COOKIE_PATH)
except FileExistsError:
except FileNotFoundError:
print("cookie: not available")
return