diff options
author | Stavros Korokithakis <hi@stavros.io> | 2018-12-10 05:20:41 +0200 |
---|---|---|
committer | Stavros Korokithakis <hi@stavros.io> | 2018-12-10 05:20:41 +0200 |
commit | e4255041219e364e5ae7aa4d95085008f823e9fe (patch) | |
tree | 5b76a979ac571ab289be890f065f8d37b56848a9 /signald/main.py | |
parent | fc539e8c0925630f345c74bc2699d74b56e0d799 (diff) | |
download | pysignald-e4255041219e364e5ae7aa4d95085008f823e9fe.tar.gz pysignald-e4255041219e364e5ae7aa4d95085008f823e9fe.zip |
Don't crash everything if the function does
Diffstat (limited to 'signald/main.py')
-rw-r--r-- | signald/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/signald/main.py b/signald/main.py index 047baae..da90d40 100644 --- a/signald/main.py +++ b/signald/main.py @@ -167,5 +167,8 @@ class Signal: if not match: continue - reply = func(message, match) + try: + reply = func(message, match) + except: # noqa - We don't care why this failed. + continue self.send_message(recipient=message.source, text=reply) |