Skip to content

Commit

Permalink
fixing error when opengl not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoVellekoop committed Oct 11, 2024
1 parent 1314648 commit 7889791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwfs/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7889791

Please sign in to comment.