From 329a7692dc8f9d93678e17de2212c8db31faa227 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Sun, 1 Aug 2021 10:48:11 +0200 Subject: [PATCH] fixed wrong return in find_server_on_network() --- jarvis/utils/server_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/utils/server_utils.py b/jarvis/utils/server_utils.py index 68a5c67..0292aae 100644 --- a/jarvis/utils/server_utils.py +++ b/jarvis/utils/server_utils.py @@ -62,7 +62,7 @@ def find_server_on_network(): print("Warning: scanning for server on a huge network, please specify the server's ip in the config.json asap.") server_ip = find_device_on_network_with_opened_port(ipaddress.ip_network("10.0.0.0/8"), config_utils.get_in_config('SERVER_PORT')) - else: + if server_ip is None: return None print("Found server on : " + str(server_ip))