diff --git a/_zengl.py b/_zengl.py index f0e9d438..cd0612ed 100644 --- a/_zengl.py +++ b/_zengl.py @@ -281,7 +281,7 @@ def loader(name): def loader(name): return proc(name.encode()) - except OSError: + except: lib = ctypes.CDLL('libGL.so') proc = ctypes.cast(lib.glXGetProcAddress, ctypes.CFUNCTYPE(ctypes.c_ulonglong, ctypes.c_char_p)) if not lib.glXGetCurrentContext():