mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2025-05-24 00:59:28 +00:00
Removed unneded code and return earlier
This commit is contained in:
parent
13a52c40f2
commit
0b3fb04728
@ -116,9 +116,6 @@ class QbittorrentMetricsCollector():
|
|||||||
categories = self.client.torrent_categories.categories
|
categories = self.client.torrent_categories.categories
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Couldn't fetch categories: {e}")
|
logger.error(f"Couldn't fetch categories: {e}")
|
||||||
categories = None
|
|
||||||
|
|
||||||
if not categories:
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
if not self.torrents:
|
if not self.torrents:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user