Connection handler can be called twice if the first call raises TypeError #10005
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Because there are two accepted signatures for the
connecthandler the first signature is tried and if that raisesTypeErrorthen the handler is called again with the second signature. This is a problem when the handler raises its ownTypeErrorexception, not related to invoking the function with the wrong arguments.Reference: https://github.com/miguelgrinberg/python-socketio/issues/1490