mirror of
https://github.com/MaxenceG2M/prometheus-immich-exporter.git
synced 2025-12-11 08:43:04 +00:00
Removed unneded code and return earlier
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user