1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

🐛 Properly handle dispenser locks

This commit is contained in:
Steffo 2021-04-15 02:49:30 +02:00
parent 9e316c14b3
commit 5531651a1f
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -334,11 +334,8 @@ class ConversationListImplementation(PDAImplementation, metaclass=abc.ABCMeta):
""" """
if dispenser.locked_by: if dispenser.locked_by:
self.log.warning("Tried to run a Conversation in a locked Dispenser!") self.log.debug("Refusing to run new Conversations in a locked Dispenser")
raise LockedDispenserError( return []
f"The Dispenser is currently locked and cannot start any new Conversation.",
dispenser.locked_by
)
self.log.info(f"Running in {dispenser!r} all conversations...") self.log.info(f"Running in {dispenser!r} all conversations...")