jasonrbriggs / stomp.py

“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.
Apache License 2.0
492 stars 167 forks source link

fix: ValueError in listener (#219) #369

Closed HWiese1980 closed 2 years ago

HWiese1980 commented 2 years ago

219 describes a ValueError in listener.py under certain circumstances that lead to an empty next_events array. I haven't found the cause of the issue yet, but this change should at least prevent the error itself from happening. What this means downstream, I don't know yet. So take this PR with a grain of salt.

It also contains a small refactoring that Sourcery AI suggested. My Python foo tells me, it should be fine.

HWiese1980 commented 2 years ago

Lovely! Thanks for the merge!

jasonrbriggs commented 2 years ago

Thanks for the PR! :grinning:

HWiese1980 commented 2 years ago

No big deal. I'm sure you're doing the same for other projects too ;-)