diff --git a/bindings/__init__.py b/bindings/__init__.py index 9675198..ee86a27 100644 --- a/bindings/__init__.py +++ b/bindings/__init__.py @@ -12,7 +12,7 @@ def loadlibc(): libc = ctypes.cdll.LoadLibrary(sharedlib) except OSError as e: print("Error loading dynamically linked library.\nOSError: " + str(e)) - raise SystemExit("Couldn't load %s" % sharedlib) + raise RuntimeError("Couldn't load %s" % sharedlib) return libc libc = loadlibc()