hopefully make fbye/fdie more smooth

This commit is contained in:
Jimmy Cao 2011-08-11 14:40:13 -05:00
parent a08bb9e60e
commit aad7bfa538

View File

@ -223,7 +223,6 @@ class IRCClient(object):
except Exception as e: except Exception as e:
traceback.print_exc() traceback.print_exc()
raise e # ? raise e # ?
yield True yield True
finally: finally:
if self.socket: if self.socket:
@ -255,5 +254,8 @@ class IRCClient(object):
def mainLoop(self): def mainLoop(self):
conn = self.connect() conn = self.connect()
while True: while True:
next(conn) try:
next(conn)
except:
return