From e63154cd7f8cfbb940a172bd0fd48ebe3386e8d5 Mon Sep 17 00:00:00 2001 From: surkeh Date: Thu, 17 May 2018 16:58:45 -0700 Subject: [PATCH] Changed SystemExit exception to RuntimeError --- bindings/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()