Removed some catching of exceptions that can never happen due to MetaFirewall.

This commit is contained in:
Jeremy Fincher 2004-02-17 06:31:19 +00:00
parent 2dab520e66
commit f3c481d13f
2 changed files with 3 additions and 9 deletions

View File

@ -101,15 +101,11 @@ class AsyncoreDriver(asynchat.async_chat, object):
msg = ircmsgs.IrcMsg(self.buffer)
#log.debug('Time to parse IrcMsg: %s', time.time()-start)
self.buffer = ''
try:
self.irc.feedMsg(msg)
except:
log.exception('Uncaught exception outside Irc object:')
self.irc.feedMsg(msg)
def handle_close(self):
self.scheduleReconnect()
self.die()
reconnect = handle_close
def handle_connect(self):

View File

@ -113,10 +113,7 @@ class SocketDriver(drivers.IrcDriver):
start = time.time()
msg = ircmsgs.IrcMsg(line)
#log.debug('Time to parse IrcMsg: %s', time.time()-start)
try:
self.irc.feedMsg(msg)
except:
log.exception('Uncaught exception outside Irc object:')
self.irc.feedMsg(msg)
except socket.timeout:
pass
except socket.error, e:
@ -164,6 +161,7 @@ class SocketDriver(drivers.IrcDriver):
self.reconnectWaitPeriodsIndex = 0
def _checkAndWriteOrReconnect(self):
log.debug('Checking whether we are connected.')
(_, w, _) = select.select([], [self.conn], [], 0)
if w:
log.info('Socket is writable, it might be connected.')