pystray icon indicating copy to clipboard operation
pystray copied to clipboard

Catch AttributeError as well as KeyError

Open simonrob opened this issue 3 years ago • 0 comments

ChangeWindowMessageFilterEx is not always present on Win32 variants. Win32.py already handles this, but catches only KeyError. I haven't seen this exception, but I have encountered AttributeError, which should be caught as well to avoid a crash.

simonrob avatar Aug 02 '22 14:08 simonrob