5023: Textual reports are crashing with HTML format without stylesheet set

svn: r17836
This commit is contained in:
Jérôme Rapinat 2011-06-27 07:35:54 +00:00
parent 49a448dcd9
commit 2b25ffec5b

View File

@ -103,7 +103,7 @@ class HtmlDoc(BaseDoc, TextDoc):
Set the css file to use. The path must be included.
Note: DocReportDialog sets this for html doc
"""
if os.path.basename(css_filename):
if css_filename and os.path.basename(css_filename):
self.css_filename = css_filename
else:
self.css_filename = ''