mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-03-13 12:07:32 +00:00
🐛 Properly handle dispenser locks
This commit is contained in:
parent
9e316c14b3
commit
5531651a1f
1 changed files with 2 additions and 5 deletions
|
@ -334,11 +334,8 @@ class ConversationListImplementation(PDAImplementation, metaclass=abc.ABCMeta):
|
|||
"""
|
||||
|
||||
if dispenser.locked_by:
|
||||
self.log.warning("Tried to run a Conversation in a locked Dispenser!")
|
||||
raise LockedDispenserError(
|
||||
f"The Dispenser is currently locked and cannot start any new Conversation.",
|
||||
dispenser.locked_by
|
||||
)
|
||||
self.log.debug("Refusing to run new Conversations in a locked Dispenser")
|
||||
return []
|
||||
|
||||
self.log.info(f"Running in {dispenser!r} all conversations...")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue