mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +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:
|
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...")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue