summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-14 03:44:47 +0100
committerlassulus <lassulus@googlemail.com>2014-01-14 03:44:47 +0100
commitcb60cf60d73d81918bcd2745192111305cfffd54 (patch)
tree1daf3f565a74bf0d3deefc63acea5a658b8f3845
parent08f47a2a7967aca55c58270f8dceb13b9f603a99 (diff)
Reaktor: asybot except signal
-rw-r--r--Reaktor/IRC/ircasy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index aacf501a..3d2d3137 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/IRC/ircasy.py
@@ -64,7 +64,10 @@ class asybot(asychat):
self.alarm_timeout = alarm_timeout
self.hammer_interval = hammer_interval
self.kill_timeout = kill_timeout
- signal(SIGALRM, lambda signum, frame: self.alarm_handler())
+ try:
+ signal(SIGALRM, lambda signum, frame: self.alarm_handler())
+ except Exception as e:
+ print('asybot: ' + str(e))
self.reset_alarm()
def reset_alarm(self):