From a97f22845bf13c8954b991b2fafd30b02e94752d Mon Sep 17 00:00:00 2001 From: Calvin Date: Thu, 9 Oct 2014 16:18:11 -0400 Subject: let CDLL raise its own errors --- feast.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'feast.py') diff --git a/feast.py b/feast.py index 3d53245..06b6782 100644 --- a/feast.py +++ b/feast.py @@ -21,11 +21,7 @@ __status__ = "Release" import numpy as np import ctypes as c -try: - libFSToolbox = c.CDLL("libFSToolbox.so"); -except: - raise Exception("Error: could not load libFSToolbox.so") - +libFSToolbox = c.CDLL("libFSToolbox.so"); def BetaGamma(data, labels, n_select, beta=1.0, gamma=1.0): """ -- cgit v1.2.3