From f375c0bc35465af8534f0e9e485c998be1c83db7 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 20 Oct 2024 14:35:56 -0400 Subject: [PATCH] Discard changes to src/capture_method/__init__.py --- src/capture_method/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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