From 487c81d50b0b38a8275eb13c5c0fc0bbb34c1cc7 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 30 Apr 2022 18:34:28 +0700 Subject: [PATCH] fix FileNotFoundError in cookie hide --- tubearchivist/home/src/download/yt_cookie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/download/yt_cookie.py b/tubearchivist/home/src/download/yt_cookie.py index 1afe8ce..0bb65e3 100644 --- a/tubearchivist/home/src/download/yt_cookie.py +++ b/tubearchivist/home/src/download/yt_cookie.py @@ -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