“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.
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.
219 describes a
ValueError
inlistener.py
under certain circumstances that lead to an emptynext_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.