diff --git a/qbittorrent_exporter/exporter.py b/qbittorrent_exporter/exporter.py index fee9cb2..e16e64c 100644 --- a/qbittorrent_exporter/exporter.py +++ b/qbittorrent_exporter/exporter.py @@ -116,9 +116,6 @@ class QbittorrentMetricsCollector(): categories = self.client.torrent_categories.categories except Exception as e: logger.error(f"Couldn't fetch categories: {e}") - categories = None - - if not categories: return [] if not self.torrents: