From 28516c70bc71a8623ee62671da072a2b16293b25 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 23 Jan 2021 01:30:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20leftover=20bug=20on=20=5Fl?= =?UTF-8?q?ocked=5Fby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/dispenser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/engineer/dispenser.py b/royalnet/engineer/dispenser.py index ed582df3..2b1b3663 100644 --- a/royalnet/engineer/dispenser.py +++ b/royalnet/engineer/dispenser.py @@ -66,7 +66,7 @@ class Dispenser: """ log.debug(f"Trying to run: {conv!r}") - if self._locked_by is not None: + if self._locked_by: log.debug(f"Dispenser is locked by {self._locked_by!r}, refusing to run {conv!r}") raise LockedDispenserError(self._locked_by, f"The Dispenser is currently locked by {self._locked_by!r} and " f"cannot start new conversations.")