try to catch an exception
This commit is contained in:
parent
f702a3d4ba
commit
d437ef497a
|
@ -176,7 +176,10 @@ class NotifyIcon:
|
|||
|
||||
def remove(self):
|
||||
""" Removes the tray icon. """
|
||||
try:
|
||||
win32gui.Shell_NotifyIcon(win32gui.NIM_DELETE, self._get_nid())
|
||||
except: # maybe except just pywintypes.error ? anyways..
|
||||
pass
|
||||
|
||||
|
||||
def set_tooltip(self, tooltip):
|
||||
|
|
Loading…
Reference in New Issue