Skip to content
Snippets Groups Projects
Commit d437ef49 authored by nkour's avatar nkour
Browse files

try to catch an exception

parent f702a3d4
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,10 @@ class NotifyIcon:
def remove(self):
""" Removes the tray icon. """
win32gui.Shell_NotifyIcon(win32gui.NIM_DELETE, self._get_nid())
try:
win32gui.Shell_NotifyIcon(win32gui.NIM_DELETE, self._get_nid())
except: # maybe except just pywintypes.error ? anyways..
pass
def set_tooltip(self, tooltip):
......@@ -319,4 +322,4 @@ class SystrayWin32(systray.Systray):
0, 0, img_flags)
imgs[state] = image
return imgs
\ No newline at end of file
return imgs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment