From f1db5b2e7d7a44e95a9a649fb62a2bd6d853c39f Mon Sep 17 00:00:00 2001 From: Calvin Tran Date: Sat, 13 Oct 2018 02:15:09 -0700 Subject: [PATCH] https://github.com/jithurjacob/Windows-10-Toast-Notifications/issues/33 added logging to classAtom --- win10toast/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,