diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-14 03:44:47 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-14 03:44:47 +0100 |
commit | 8cf5cb9949de2a8b3645b05442142f02e40400af (patch) | |
tree | ac1d9e44f3a1bd96e840bbc679d109cd5c5f3054 /IRC | |
parent | 92fd973cd337e64bce31a6423ca989846b336904 (diff) |
Reaktor: asybot except signal
Diffstat (limited to 'IRC')
-rw-r--r-- | IRC/ircasy.py | 5 |
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): |