Fix event handler TypeError and increase log level to INFO

This commit is contained in:
2026-01-07 19:18:01 +01:00
parent 055bbf4de6
commit f39a08d985
2 changed files with 4 additions and 2 deletions

View File

@@ -93,7 +93,9 @@ class SerieScanner:
"""
if event_handler:
try:
event_handler(data)
# Event handlers are stored as lists, iterate over them
for handler in event_handler:
handler(data)
except Exception as e:
logger.error("Error calling event handler: %s", e, exc_info=True)