From fc945c6912e2c185bc77f89a05feba19423596c3 Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 29 Apr 2020 13:58:26 +0200 Subject: [PATCH] Fix markdown parse failing if message was None --- stdplugins/markdown.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdplugins/markdown.py b/stdplugins/markdown.py index e646bdd..f0325ee 100644 --- a/stdplugins/markdown.py +++ b/stdplugins/markdown.py @@ -96,6 +96,9 @@ MATCHERS = [ def parse(message, old_entities=None): + if not message: + return message + entities = [] old_entities = sorted(old_entities or [], key=lambda e: e.offset)