moses-palmer / pystray

GNU General Public License v3.0
461 stars 57 forks source link

Catch AttributeError as well as KeyError #128

Open simonrob opened 1 year ago

simonrob commented 1 year ago

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.