django / channels

Developer-friendly asynchrony for Django
https://channels.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.01k stars 793 forks source link

More informative assert errors for WebsocketCommunicator. #2098

Closed hovi closed 1 month ago

hovi commented 1 month ago

Already happened to me twice, that this AssertionError got me puzzled for a bit (being channels newbie and coming back after months), until I figured out, what was going on (socket closed unexpectedly while I wanted to read from it).

Having this kind of informative message would give me immediate hint and make my debugging much faster.

carltongibson commented 1 month ago

If you can fix the lint error, we're good to go.

hovi commented 1 month ago

If you can fix the lint error, we're good to go.

I believe I just did. Are you squashing or should I cleanup commits?

carltongibson commented 1 month ago

Thanks @hovi 🎁

hovi commented 1 month ago

My pleasure, thanks for quick review!