From 8ad70b028b5797d3153a224c0b00dff274c9ccd9 Mon Sep 17 00:00:00 2001 From: Jack Stupple Date: Mon, 21 Feb 2022 08:24:49 +0000 Subject: [PATCH] Fix env being a string --- minecraft_exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft_exporter.py b/minecraft_exporter.py index 0a4b687..259507b 100644 --- a/minecraft_exporter.py +++ b/minecraft_exporter.py @@ -314,7 +314,7 @@ if __name__ == '__main__': if all(x in os.environ for x in ['RCON_HOST','RCON_PASSWORD']): print("RCON is enabled for "+ os.environ['RCON_HOST']) - HTTP_PORT = os.environ.get('HTTP_PORT') + HTTP_PORT = int(os.environ.get('HTTP_PORT')) if HTTP_PORT == None: HTTP_PORT = 8000