mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
🐛 Fix leftover bug on _locked_by
This commit is contained in:
parent
8d3de9a737
commit
28516c70bc
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue