Removed unneded code and return earlier

This commit is contained in:
Esteban Sánchez 2020-10-01 10:14:56 +02:00
parent 13a52c40f2
commit 0b3fb04728

View file

@ -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: