diff --git a/win10toast/__init__.py b/win10toast/__init__.py index 8ed1bc5..76e109f 100644 --- a/win10toast/__init__.py +++ b/win10toast/__init__.py @@ -77,8 +77,8 @@ def _show_toast(self, title, msg, self.wc.lpfnWndProc = message_map # could also specify a wndproc. try: self.classAtom = RegisterClass(self.wc) - except: - pass #not sure of this + except Exception as e: + logging.error("Some trouble with classAtom ({})".format(e)) style = WS_OVERLAPPED | WS_SYSMENU self.hwnd = CreateWindow(self.classAtom, "Taskbar", style, 0, 0, CW_USEDEFAULT,