Changed SystemExit exception to RuntimeError

This commit is contained in:
surkeh 2018-05-17 16:58:45 -07:00
parent 979c5f4aaa
commit e63154cd7f

View File

@ -12,7 +12,7 @@ def loadlibc():
libc = ctypes.cdll.LoadLibrary(sharedlib) libc = ctypes.cdll.LoadLibrary(sharedlib)
except OSError as e: except OSError as e:
print("Error loading dynamically linked library.\nOSError: " + str(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 return libc
libc = loadlibc() libc = loadlibc()