this seems to fix the problem where the IRC lib ate errors
This commit is contained in:
parent
a83911f054
commit
e30c8e3e19
@ -200,7 +200,7 @@ class IRCClient(object):
|
|||||||
try:
|
try:
|
||||||
self.connect_cb(self)
|
self.connect_cb(self)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
sys.stderr.write(traceback.format_exc())
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
buffer = bytes()
|
buffer = bytes()
|
||||||
@ -211,6 +211,7 @@ class IRCClient(object):
|
|||||||
if False and not self.blocking and e.errno == 11:
|
if False and not self.blocking and e.errno == 11:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
sys.stderr.write(traceback.format_exc())
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
data = buffer.split(bytes("\n", "utf_8"))
|
data = buffer.split(bytes("\n", "utf_8"))
|
||||||
@ -238,7 +239,7 @@ class IRCClient(object):
|
|||||||
elif "" in self.command_handler:
|
elif "" in self.command_handler:
|
||||||
self.command_handler[""](self, prefix, command, *fargs)
|
self.command_handler[""](self, prefix, command, *fargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
sys.stderr.write(traceback.format_exc())
|
||||||
raise e # ?
|
raise e # ?
|
||||||
yield True
|
yield True
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user