diff --git a/core/image_cache.py b/core/image_cache.py index 9ee0be47..040c1126 100644 --- a/core/image_cache.py +++ b/core/image_cache.py @@ -198,8 +198,8 @@ class ImageCache: except Exception: try: tmp_path.unlink(missing_ok=True) - except Exception: - pass + except Exception as cleanup_exc: + logger.debug("image_cache tmp cleanup failed: %s", cleanup_exc) raise if total <= 0: diff --git a/core/torrent_clients/transmission.py b/core/torrent_clients/transmission.py index 0cd9b47c..266bda79 100644 --- a/core/torrent_clients/transmission.py +++ b/core/torrent_clients/transmission.py @@ -98,7 +98,7 @@ class TransmissionAdapter: return None auth = (self._username, self._password) if self._username else None payload = {'method': method, 'arguments': arguments} - for attempt in range(2): + for _attempt in range(2): try: with self._session_id_lock: sid = self._session_id