Update IRCBot except queue.Empty comment

This commit is contained in:
jesopo 2019-06-26 13:43:00 +01:00
parent 4bf5c4783b
commit 7060a0ac67

View file

@ -275,13 +275,11 @@ class Bot(object):
self.log.warn("No servers, exiting")
break
try:
item = self._event_queue.get(block=True,
timeout=self.get_poll_timeout())
except queue.Empty:
# caused by timeout being hit. loop back round because a _check
# call is due
# caused by timeout being hit.
continue
finally:
self._check()
@ -345,7 +343,6 @@ class Bot(object):
while self.running:
events = self._read_poll.poll()
for fd, event in events:
if fd == self._rtrigger_server.fileno():
# throw away data from trigger socket