--- a/scripts/teamforge-import.py
+++ b/scripts/teamforge-import.py
@@ -650,7 +650,7 @@
else:
# regular link
return '<%s>' % snippet
- markup = bracket_macro.sub(bracket_handler, markup)
+ markup = bracket_macro.sub(bracket_handler, markup or '')
markup = h1.sub('#', markup)
markup = h2.sub('##', markup)
markup = h3.sub('###', markup)
@@ -668,7 +668,7 @@
sf_project_shortname, path, path)
else:
return relno
- text = re_rel.sub(rel_handler, text)
+ text = re_rel.sub(rel_handler, text or '')
return text