mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2025-04-19 01:20:01 -05:00
Handle general exception when processing
This commit is contained in:
parent
d553cec1d3
commit
5a08094d43
1 changed files with 6 additions and 0 deletions
|
@ -104,6 +104,12 @@ class Processor(ABC):
|
|||
# Catch a CTRL + C keyboard input, and exits the program
|
||||
except KeyboardInterrupt:
|
||||
sys.exit("Cancel requested...")
|
||||
except Exception as e:
|
||||
logging.error(
|
||||
f"Got unknown error {e},"
|
||||
f" while processing {tv_time_item.name}"
|
||||
)
|
||||
error_streak += 1
|
||||
|
||||
@abstractmethod
|
||||
def _handle_index_error(self, tv_time_item: TVTimeItem, trakt_item: TraktItem, progress: float) -> None:
|
||||
|
|
Loading…
Reference in a new issue