aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--IRC/ircasy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/IRC/ircasy.py b/IRC/ircasy.py
index aacf501..3d2d313 100644
--- a/IRC/ircasy.py
+++ b/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):