[FIX] webkit: User friendly popup error message displayed while webkit report's path does not exist.
bzr revid: rch@tinyerp.com-20110614120803-k9ohpc3cehh9agz3
This commit is contained in:
@@ -247,7 +247,7 @@ class WebKitParser(report_sxw):
|
||||
|
||||
if report_xml.report_file :
|
||||
path = addons.get_module_resource(report_xml.report_file)
|
||||
if os.path.exists(path) :
|
||||
if path and os.path.exists(path) :
|
||||
template = file(path).read()
|
||||
if not template and report_xml.report_webkit_data :
|
||||
template = report_xml.report_webkit_data
|
||||
|
||||
Reference in New Issue
Block a user