Skip to content

Update exception handling to catch exceptions in threads (py3 change)#2309

Merged
j9ac9k merged 3 commits intopyqtgraph:masterfrom
campagnola:threaded-exception-handling
May 20, 2022
Merged

Update exception handling to catch exceptions in threads (py3 change)#2309
j9ac9k merged 3 commits intopyqtgraph:masterfrom
campagnola:threaded-exception-handling

Conversation

@campagnola
Copy link
Copy Markdown
Member

In python 3, unhandled exceptions inside threads no longer invoke sys.excepthook; instead they invoke threading.excepthook. Additionally, the signature of threading.excepthook is incompatible with sys.excepthook, which necessitates adding new callback registration functions and deprecating the old ones.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 19, 2022

This is the first time in a while I've seen the readthedocs CI fail. Also Py310-PySide6 binding failures are unrelated to this PR.

@campagnola
Copy link
Copy Markdown
Member Author

Oo, threading.excepthook was added in python 3.8. I guess readthedocs is using something older..

@campagnola campagnola force-pushed the threaded-exception-handling branch from 0f71c64 to ca5676a Compare May 19, 2022 19:54
@j9ac9k j9ac9k merged commit cef0870 into pyqtgraph:master May 20, 2022
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 20, 2022

Thanks @campagnola for the PR!

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

Successfully merging this pull request may close these issues.

2 participants