aboutsummaryrefslogtreecommitdiff
path: root/gn2/utility/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/utility/tools.py')
-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