From 5f4af12a2f829b25851a84557304b7101318edee Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 23 Nov 2021 14:14:30 +0100 Subject: [PATCH] journee_mondiale: do not crash if none was found --- edmond/plugins/journee_mondiale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edmond/plugins/journee_mondiale.py b/edmond/plugins/journee_mondiale.py index 3618946..1483d00 100644 --- a/edmond/plugins/journee_mondiale.py +++ b/edmond/plugins/journee_mondiale.py @@ -29,5 +29,6 @@ class JourneeMondialePlugin(Plugin): except (ValueError, KeyError): self.signal_failure(event.target) return True - self.bot.say(event.target, jm) + if jm: + self.bot.say(event.target, jm) return True