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.lock.release()
self._trigger_client.send(b"TRIGGER") self._trigger_client.send(b"TRIGGER")
type, returned = func_queue.get(True) type, returned = func_queue.get(block=True)
if type == TRIGGER_EXCEPTION: if type == TRIGGER_EXCEPTION:
raise returned raise returned
elif type == TRIGGER_RETURN: elif type == TRIGGER_RETURN: