From 5531651a1fb9eba20c8da593879b1bb3dcee0798 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 15 Apr 2021 02:49:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Properly=20handle=20dispenser=20?= =?UTF-8?q?locks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/pda/implementations/base.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/royalnet/engineer/pda/implementations/base.py b/royalnet/engineer/pda/implementations/base.py index 4467c905..b7f84a70 100644 --- a/royalnet/engineer/pda/implementations/base.py +++ b/royalnet/engineer/pda/implementations/base.py @@ -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...")