From ab742929be4b59e999af251e3e27026c45eb50f7 Mon Sep 17 00:00:00 2001 From: Alex O Date: Tue, 6 Feb 2024 20:14:27 +0100 Subject: [PATCH] fix lint errors --- flathunter/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flathunter/config.py b/flathunter/config.py index bc110a44..ded1d595 100644 --- a/flathunter/config.py +++ b/flathunter/config.py @@ -141,7 +141,7 @@ def get_last_modified_time(self, filename: str) -> Optional[float]: """Gets the time the config file was last modified at the time of initialization""" try: return os.path.getmtime(filename) - except Exception as e: + except OSError as e: logger.error(e) return None