mirror of
https://github.com/MaxenceG2M/prometheus-immich-exporter.git
synced 2025-12-08 14:53:23 +00:00
Fixed config checker
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user