diff --git a/bindings/python/unicorn/unicorn_py3/unicorn.py b/bindings/python/unicorn/unicorn_py3/unicorn.py index 55bc20b1..c52046b5 100644 --- a/bindings/python/unicorn/unicorn_py3/unicorn.py +++ b/bindings/python/unicorn/unicorn_py3/unicorn.py @@ -98,13 +98,13 @@ def __load_uc_lib() -> ctypes.CDLL: canonicals.append( resources.files("unicorn") / 'lib' ) - except ImportError: + except: try: import pkg_resources canonicals.append( pkg_resources.resource_filename("unicorn", 'lib') ) - except ImportError: + except: # maybe importlib_resources, but ignore for now pass