From d6019d7a2af748cd8ee5f86f0e754cb3ef5a2619 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Mon, 26 Aug 2024 20:37:42 +0300 Subject: feat: add template for editting wiki --- gn2/utility/tools.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gn2/utility') diff --git a/gn2/utility/tools.py b/gn2/utility/tools.py index d8e21bcd..26ed3a77 100644 --- a/gn2/utility/tools.py +++ b/gn2/utility/tools.py @@ -46,14 +46,11 @@ def get_setting(command_id, guess=None): """ def value(command): if command: - # sys.stderr.write("Found "+command+"\n") app_set(command_id, command) return command - else: - return app.config.get(command_id) + return app.config.get(command_id) # ---- Check whether environment exists - # print("Looking for "+command_id+"\n") command = value(os.environ.get(command_id)) if command is None or command == "": # ---- Check whether setting exists in app @@ -61,10 +58,8 @@ def get_setting(command_id, guess=None): if command is None: command = value(guess) if command is None or command == "": - # print command raise Exception( command_id + ' setting unknown or faulty (update default_settings.py?).') - # print("Set "+command_id+"="+str(command)) return command -- cgit v1.2.3