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.")