From 55c4b3a5a7b27c0084705f2cfed7dcb549c711fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez?= Date: Tue, 29 Sep 2020 11:49:16 +0200 Subject: [PATCH] Fixed config checker --- qbittorrent_exporter/exporter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qbittorrent_exporter/exporter.py b/qbittorrent_exporter/exporter.py index cb1a4f9..2418b56 100644 --- a/qbittorrent_exporter/exporter.py +++ b/qbittorrent_exporter/exporter.py @@ -189,11 +189,10 @@ def main(): if not config["host"]: logger.error("No host specified, please set QBITTORRENT_HOST environment variable") sys.exit(1) - if not config["post"]: + if not config["port"]: logger.error("No post specified, please set QBITTORRENT_PORT environment variable") sys.exit(1) - # Register our custom collector logger.info("Exporter is starting up") REGISTRY.register(QbittorrentMetricsCollector(config))