mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Fix logo file validation in NHL managers - Use os.path.isfile instead of is_file() on string paths
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user