journee_mondiale: do not crash if none was found
This commit is contained in:
parent
3a756a7489
commit
5f4af12a2f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue