diff --git a/community/lms/md.py b/community/lms/md.py index b256eb72..0658ca82 100644 --- a/community/lms/md.py +++ b/community/lms/md.py @@ -36,6 +36,8 @@ def find_macros(text): ('Exercise', 'four-circles') ] """ + if not text: + return [] macros = re.findall(MACRO_RE, text) # remove the quotes around the argument return [(name, _remove_quotes(arg)) for name, arg in macros]