Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when explorer.exe is not working #120

Open
DZX66 opened this issue Feb 5, 2024 · 0 comments
Open

Error when explorer.exe is not working #120

DZX66 opened this issue Feb 5, 2024 · 0 comments

Comments

@DZX66
Copy link

DZX66 commented Feb 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant