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

svn: r17837
This commit is contained in:
Jérôme Rapinat 2011-06-27 07:37:32 +00:00
parent dfd17224ad
commit 5341b4d132

View File

@ -104,7 +104,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 = ''