aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStavros Korokithakis <hi@stavros.io>2018-12-10 05:20:41 +0200
committerStavros Korokithakis <hi@stavros.io>2018-12-10 05:20:41 +0200
commite4255041219e364e5ae7aa4d95085008f823e9fe (patch)
tree5b76a979ac571ab289be890f065f8d37b56848a9
parentfc539e8c0925630f345c74bc2699d74b56e0d799 (diff)
downloadpysignald-e4255041219e364e5ae7aa4d95085008f823e9fe.tar.gz
pysignald-e4255041219e364e5ae7aa4d95085008f823e9fe.zip
Don't crash everything if the function does
-rw-r--r--signald/main.py5
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)