Skip to content

Commit

Permalink
Discard changes to src/capture_method/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Oct 20, 2024
1 parent 52050c7 commit f375c0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/capture_method/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f375c0b

Please sign in to comment.