From 88b7f0b98c1df574a06fd43cdbaaed50a69a0dc9 Mon Sep 17 00:00:00 2001 From: davidemarcoli Date: Mon, 22 Jul 2024 15:22:53 +0200 Subject: [PATCH] fix: crash on failed metadata enhancement --- src/program/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/program.py b/src/program/program.py index 362a051e..49381be9 100644 --- a/src/program/program.py +++ b/src/program/program.py @@ -147,7 +147,7 @@ def start(self): if isinstance(item, (Movie, Show)): try: item = next(self.services[TraktIndexer].run(item)) - except StopIteration: + except StopIteration as e: logger.error(f"Failed to enhance metadata for {item.title} ({item.item_id}): {e}") continue if item.item_id in added: