From 788979137f7de6646a267bd2170f8ac275f2dc58 Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 11 Oct 2024 16:01:21 +0200 Subject: [PATCH] fixing error when opengl not installed --- openwfs/devices/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwfs/devices/__init__.py b/openwfs/devices/__init__.py index cc92a5e..34ad7bb 100644 --- a/openwfs/devices/__init__.py +++ b/openwfs/devices/__init__.py @@ -5,7 +5,7 @@ def safe_import(module_name: str, extra_name: str): try: return importlib.import_module(module_name) - except ModuleNotFoundError: + except (ModuleNotFoundError, AttributeError): warnings.warn( f"""Could not import {module_name}, because the package is not installed. To install, using: