aboutsummaryrefslogtreecommitdiff
path: root/gn2/utility
diff options
context:
space:
mode:
authorJohn Nduli2024-08-26 20:37:42 +0300
committerBonfaceKilz2024-08-29 15:31:34 +0300
commitd6019d7a2af748cd8ee5f86f0e754cb3ef5a2619 (patch)
tree6e0a36560a710de28a792d7642558debc8c6777f /gn2/utility
parent50fb34a131a762cbe4e7fe8e19e7eb9dd13aa249 (diff)
downloadgenenetwork2-d6019d7a2af748cd8ee5f86f0e754cb3ef5a2619.tar.gz
feat: add template for editting wiki
Diffstat (limited to 'gn2/utility')
-rw-r--r--gn2/utility/tools.py7
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