diff --git a/qBitrr/arss.py b/qBitrr/arss.py index c9bd629f..951ddb18 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -2554,11 +2554,17 @@ def process_torrents(self): return self._temp_overseer_request_cache except qbittorrentapi.exceptions.APIError as e: self.logger.error("The qBittorrent API returned an unexpected error") - self.logger.debug("Unexpected APIError from qBitTorrent", exc_info=e) + exceptionstr = str(e) + if ( + exceptionstr.find(JSONDecodeError) != 0 + or exceptionstr.find(AttributeError) != 0 + ): + self.logger.info("Torrent still connecting to trackers") + else: + self.logger.debug("Unexpected APIError from qBitTorrent", exc_info=e) raise DelayLoopException(length=300, type="qbit") - except (AttributeError, JSONDecodeError) as e: + except (AttributeError, JSONDecodeError): self.logger.info("Torrent still connecting to trackers") - self.logger.debug("No trackers found yet", exc_info=e) raise DelayLoopException(length=300, type="qbit") except DelayLoopException: raise