pyenet
pyenet copied to clipboard
Callbacks swallow exceptions
during the creation of https://github.com/piqueserver/piqueserver/pull/361, I noticed that the enet callbacks swallow any exceptions in python space silently.
Not really sure what we can do about that. Have you considered having your callback function schedule the code in your mainloop outside of the callback?
Well, we have added a try except around it in our code. It's just a gotcha that you need that in the first place. Cython docs describe adding a try except around the code in Cython, but I have not tested if this fixes things.