From 2f76982c38cae7d752e5694377689e0596594a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Ram=C3=ADrez?= Date: Mon, 3 Feb 2014 16:39:27 -0600 Subject: [PATCH] fix #5. --- secretary.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/secretary.py b/secretary.py index 507706d..6373045 100644 --- a/secretary.py +++ b/secretary.py @@ -300,6 +300,10 @@ class Render(object): """ Convert a markdown text into a ODT formated text """ + + if not isinstance(markdown_text, basestring): + return '' + from xml.dom import Node from markdown_map import transform_map