aboutsummaryrefslogtreecommitdiff
path: root/feast.py
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-04-02 11:32:57 -0400
committerCalvin <calvin@EESI>2013-04-02 11:32:57 -0400
commit33ec6f1556f0c29f599841b34944b834183eb1ab (patch)
treefa154031a44b19d0c5dde54b098e89e9c5f47e0d /feast.py
parent7f476142f51e8e997bc9d3e1c20bc0bad6586dd7 (diff)
Throw a proper exception if the linker cannot find libFSToolbox.so, and remove the ToDo section
Diffstat (limited to 'feast.py')
-rw-r--r--feast.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/feast.py b/feast.py
index 8fb5ce8..767d664 100644
--- a/feast.py
+++ b/feast.py
@@ -24,8 +24,7 @@ from ctypes import *
try:
libFSToolbox = CDLL("libFSToolbox.so");
except:
- print "Error: could not find libFSToolbox"
- exit()
+ raise Exception("Error: could not load libFSToolbox.so")
def BetaGamma(data, labels, n_select, beta=1.0, gamma=1.0):