diff options
author | John Nduli | 2024-08-26 20:37:42 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 15:31:34 +0300 |
commit | d6019d7a2af748cd8ee5f86f0e754cb3ef5a2619 (patch) | |
tree | 6e0a36560a710de28a792d7642558debc8c6777f /gn2/utility | |
parent | 50fb34a131a762cbe4e7fe8e19e7eb9dd13aa249 (diff) | |
download | genenetwork2-d6019d7a2af748cd8ee5f86f0e754cb3ef5a2619.tar.gz |
feat: add template for editting wiki
Diffstat (limited to 'gn2/utility')
-rw-r--r-- | gn2/utility/tools.py | 7 |
1 files changed, 1 insertions, 6 deletions
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 |