From e30c8e3e1924e2f709b8a4529eaea314f61dd55c Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 12 Oct 2015 19:22:25 -0400 Subject: [PATCH] this seems to fix the problem where the IRC lib ate errors --- oyoyo/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oyoyo/client.py b/oyoyo/client.py index 519be52..deccafc 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -200,7 +200,7 @@ class IRCClient(object): try: self.connect_cb(self) except Exception as e: - traceback.print_exc() + sys.stderr.write(traceback.format_exc()) raise e buffer = bytes() @@ -211,6 +211,7 @@ class IRCClient(object): if False and not self.blocking and e.errno == 11: pass else: + sys.stderr.write(traceback.format_exc()) raise e else: data = buffer.split(bytes("\n", "utf_8")) @@ -238,7 +239,7 @@ class IRCClient(object): elif "" in self.command_handler: self.command_handler[""](self, prefix, command, *fargs) except Exception as e: - traceback.print_exc() + sys.stderr.write(traceback.format_exc()) raise e # ? yield True finally: