Skip to content

Error when explorer.exe is not working #120

Description

@DZX66

When I use show_toast() when explorer.exe is not working, it catches:
Traceback (most recent call last):
File "schoolpctool.py", line 567, in toaster
File "win10toast_init_.py", line 146, in show_toast
File "win10toast_init_.py", line 123, in _show_toast
pywintypes.error: (-2147467259, 'Shell_NotifyIcon', 'Unspecified error')

After I restart explorer.exe and use show_toast(), it catches:
Traceback (most recent call last):
File "schoolpctool.py", line 567, in toaster
File "win10toast_init_.py", line 146, in show_toast
File "win10toast_init_.py", line 104, in _show_toast
pywintypes.error: (1400, 'UpdateWindow', 'Invalid window handle')

How do I fix it, making it working when explorer.exe is running after it has crushed?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions