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: