From 515fd621739637439345b0a215c45852fa231c3e Mon Sep 17 00:00:00 2001 From: Thomas Feldmann Date: Fri, 22 Mar 2024 21:16:53 +0100 Subject: [PATCH] remove unneeded `.exists()` check --- organize/find_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/organize/find_config.py b/organize/find_config.py index d45a8e8a..8c1a8f9c 100644 --- a/organize/find_config.py +++ b/organize/find_config.py @@ -46,7 +46,7 @@ def find_default_config() -> Path: # if the `ORGANIZE_CONFIG` env variable is set we only check this specific location if ENV_ORGANIZE_CONFIG is not None: result = expandvars(ENV_ORGANIZE_CONFIG) - if result.exists() and result.is_file(): + if result.is_file(): return result raise ConfigNotFound(str(result))