From e5652e06219f16d3cbc9f6d6c4edea760f9c3246 Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Tue, 5 May 2020 15:48:11 +0200 Subject: [PATCH] only print server-wide arl msg if .arl file exists --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index a2a50ee..33300f4 100644 --- a/server.py +++ b/server.py @@ -62,8 +62,6 @@ def closing(): return 'server closed' serverwide_arl = "--serverwide-arl" in sys.argv -if serverwide_arl: - print("Server-wide ARL enabled.") @socketio.on('connect') def on_connect(): @@ -75,6 +73,7 @@ def on_connect(): arl_file_path = path.join(localpaths.getConfigFolder(), '.arl') if serverwide_arl and path.isfile(arl_file_path): + print("Server-wide ARL enabled.") with open(arl_file_path, 'r') as file: arl = file.read() emit('init_serverwideARL', arl)