From b1bf54f1de7d4806275a46d8ad665a293ee6b69d Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 17 May 2024 12:55:14 +0200 Subject: [PATCH] [patch] Version check handling --- qBitrr/arss.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 4960a059..94d38843 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -294,14 +294,15 @@ def __init__( self.client = client_cls(host_url=self.uri, api_key=self.apikey) if isinstance(self.client, SonarrAPI): self.type = "sonarr" - version_info = self.client.get_update() - self.version = version_parser.parse(version_info[0].get("version")) - self.logger.debug("%s version: %s", self._name, self.version.__str__()) elif isinstance(self.client, RadarrAPI): self.type = "radarr" + + try: version_info = self.client.get_update() self.version = version_parser.parse(version_info[0].get("version")) self.logger.debug("%s version: %s", self._name, self.version.__str__()) + except Exception: + self.logger.debug("Failed to get version") if self.rss_sync_timer > 0: self.rss_sync_timer_last_checked = datetime(1970, 1, 1)