From 2f32c69f504d78222727e9eb259a9da05ad5844d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez?= Date: Tue, 9 May 2023 16:45:14 +0200 Subject: [PATCH] Style correction --- qbittorrent_exporter/exporter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qbittorrent_exporter/exporter.py b/qbittorrent_exporter/exporter.py index 3de23a3..5e69547 100644 --- a/qbittorrent_exporter/exporter.py +++ b/qbittorrent_exporter/exporter.py @@ -19,12 +19,12 @@ logger = logging.getLogger() class QbittorrentMetricsCollector(): TORRENT_STATUSES = [ - "downloading", - "uploading", - "complete", "checking", + "complete", + "downloading", "errored", "paused", + "uploading", ] def __init__(self, config): @@ -196,7 +196,6 @@ def main(): # Register signal handler signal_handler = SignalHandler() - if not config["host"]: logger.error("No host specified, please set QBITTORRENT_HOST environment variable") sys.exit(1)