From 0b3fb04728b2ec82a4f892898472e2432ef765a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez?= Date: Thu, 1 Oct 2020 10:14:56 +0200 Subject: [PATCH] Removed unneded code and return earlier --- qbittorrent_exporter/exporter.py | 3 --- 1 file changed, 3 deletions(-) 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: