From aa15ef1fc1eb7154ba3e57e0fe322d1eae986cbd Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 18 Apr 2025 11:15:19 -0500 Subject: [PATCH] Fix logo file validation in NHL managers - Use os.path.isfile instead of is_file() on string paths --- src/nhl_managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhl_managers.py b/src/nhl_managers.py index 63105f01..f998489c 100644 --- a/src/nhl_managers.py +++ b/src/nhl_managers.py @@ -172,7 +172,7 @@ class BaseNHLManager: # Validate logo files for team in ["home", "away"]: logo_path = details[f"{team}_logo_path"] - if not logo_path.is_file(): + if not os.path.isfile(logo_path): logging.warning(f"[NHL] {team.title()} logo not found: {logo_path}") details[f"{team}_logo_path"] = None else: