From 33ec6f1556f0c29f599841b34944b834183eb1ab Mon Sep 17 00:00:00 2001 From: Calvin Date: Tue, 2 Apr 2013 11:32:57 -0400 Subject: Throw a proper exception if the linker cannot find libFSToolbox.so, and remove the ToDo section --- feast.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'feast.py') 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): -- cgit v1.2.3