Fix logo file validation in NHL managers - Use os.path.isfile instead of is_file() on string paths

This commit is contained in:
ChuckBuilds
2025-04-18 11:15:19 -05:00
parent d43371f069
commit aa15ef1fc1

View File

@@ -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: