From 92b1a48845f59892772529a73e7e83c05aa4407f Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 11 Aug 2011 14:40:13 -0500 Subject: [PATCH] hopefully make fbye/fdie more smooth --- oyoyo/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oyoyo/client.py b/oyoyo/client.py index 3cc1b35..fee2333 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -223,7 +223,6 @@ class IRCClient(object): except Exception as e: traceback.print_exc() raise e # ? - yield True finally: if self.socket: @@ -255,5 +254,8 @@ class IRCClient(object): def mainLoop(self): conn = self.connect() while True: - next(conn) + try: + next(conn) + except: + return