1
Fork 0
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:
Steffo 2021-01-23 01:30:17 +01:00
parent 8d3de9a737
commit 28516c70bc
Signed by: steffo
GPG key ID: 6965406171929D01

View file

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