Make block param of queue.get() explicitly refer to block

This commit is contained in:
jesopo 2018-12-10 13:34:53 +00:00
parent df8135f105
commit 312293b221

View file

@ -49,7 +49,7 @@ class Bot(object):
self.lock.release()
self._trigger_client.send(b"TRIGGER")
type, returned = func_queue.get(True)
type, returned = func_queue.get(block=True)
if type == TRIGGER_EXCEPTION:
raise returned
elif type == TRIGGER_RETURN: