pystray
pystray copied to clipboard
Catch AttributeError as well as KeyError
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.