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):
|
except (ValueError, KeyError):
|
||||||
self.signal_failure(event.target)
|
self.signal_failure(event.target)
|
||||||
return True
|
return True
|
||||||
|
if jm:
|
||||||
self.bot.say(event.target, jm)
|
self.bot.say(event.target, jm)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue