aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-02-24 17:00:04 +0000
committerPjotr Prins2016-04-20 09:30:18 +0000
commit9395e9f3cc2d06e069c5de797b2d6e8e59cfba7c (patch)
tree0cfc1256ee0f947f1459dd2ddf734618c6cd79cf /wqflask/utility
parent575e00b1061c58952cba38af5ab078ca0081b4d7 (diff)
downloadgenenetwork2-9395e9f3cc2d06e069c5de797b2d6e8e59cfba7c.tar.gz
[PATCH 042/100] Sanitizing locations
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/tools.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index 51189fa3..b8eff12a 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -1,4 +1,3 @@
-
# Tools/paths finder resolves external paths from settings and/or environment
# variables
@@ -105,9 +104,9 @@ def locate(name, subdir=None):
print("Found: file "+lookfor+"\n")
return lookfor
else:
- raise IOError("Can not locate "+lookfor)
+ raise Exception("Can not locate "+lookfor)
if subdir: sys.stderr.write(subdir)
- raise IOError("Can not locate "+name+" in "+base)
+ raise Exception("Can not locate "+name+" in "+base)
def locate_ignore_error(name, subdir=None):
"""