From 7d5271dbca3e35f65cde8866fcc9213edf87f28a Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Fri, 1 Nov 2024 02:50:30 -0600 Subject: [PATCH] Log an exception when cookie file isn't found --- src/pycookiecheat/firefox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pycookiecheat/firefox.py b/src/pycookiecheat/firefox.py index 004d7a4..740f11e 100644 --- a/src/pycookiecheat/firefox.py +++ b/src/pycookiecheat/firefox.py @@ -127,8 +127,8 @@ def _copy_if_exists(src: list[Path], dest: Path) -> None: for file in src: try: shutil.copy2(file, dest) - except FileNotFoundError: - pass + except FileNotFoundError as e: + logger.exception(e) def _load_firefox_cookie_db(