зеркало из https://github.com/mozilla/pjs.git
Bug 725478 - Fix possible access on None; r=losing
This commit is contained in:
Родитель
65d413db60
Коммит
91b0fcf456
|
@ -464,7 +464,9 @@ class XPCShellTests(object):
|
|||
failure.setAttribute("message", result["failure"]["message"])
|
||||
|
||||
# Lossy translation but required to not break CDATA.
|
||||
cdata = result["failure"]["text"].replace("]]>", "]] >")
|
||||
cdata = result["failure"]["text"]
|
||||
if cdata is not None:
|
||||
cdata = cdata.replace("]]>", "]] >")
|
||||
text = doc.createCDATASection(cdata)
|
||||
failure.appendChild(text)
|
||||
testcase.appendChild(failure)
|
||||
|
|
Загрузка…
Ссылка в новой задаче