diff --git a/gramps2/src/docgen/HtmlDoc.py b/gramps2/src/docgen/HtmlDoc.py
index a86530884..9b0733436 100644
--- a/gramps2/src/docgen/HtmlDoc.py
+++ b/gramps2/src/docgen/HtmlDoc.py
@@ -191,7 +191,7 @@ class HtmlDoc(BaseDoc.BaseDoc):
except IOError,msg:
mymsg = _("Could not open %s\nUsing the default template") % \
self.template
- QuestionDialog.WarningDialog(mymsg,msg)
+ QuestionDialog.WarningDialog(mymsg,str(msg))
self.bottom = _bottom
self.top = _top
except: