diff --git a/src/capture_method/__init__.py b/src/capture_method/__init__.py index f1593daa..6d25cda1 100644 --- a/src/capture_method/__init__.py +++ b/src/capture_method/__init__.py @@ -137,8 +137,7 @@ def get(self, key: CaptureMethodEnum, default: object = None, /): import d3dshot d3dshot.create(capture_output="numpy") - except (ModuleNotFoundError, COMError, NameError): - # NameError: https://github.com/enthought/comtypes/issues/618 + except (ModuleNotFoundError, COMError): pass else: CAPTURE_METHODS[CaptureMethodEnum.DESKTOP_DUPLICATION] = DesktopDuplicationCaptureMethod