mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +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
|
# Validate logo files
|
||||||
for team in ["home", "away"]:
|
for team in ["home", "away"]:
|
||||||
logo_path = details[f"{team}_logo_path"]
|
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}")
|
logging.warning(f"[NHL] {team.title()} logo not found: {logo_path}")
|
||||||
details[f"{team}_logo_path"] = None
|
details[f"{team}_logo_path"] = None
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user