Commit 5da539b1 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: don't crash export if page does not exist

parent 9a74eb00
...@@ -21,7 +21,7 @@ for link in re.findall('([^[]<a.*?</a>[^]])', doc_content or blank): ...@@ -21,7 +21,7 @@ for link in re.findall('([^[]<a.*?</a>[^]])', doc_content or blank):
link_doc = context.restrictedTraverse(link_reference.split("?")[0]) link_doc = context.restrictedTraverse(link_reference.split("?")[0])
doc_content = doc_content.replace(link, link_doc.asStrippedHTML()) doc_content = doc_content.replace(link, link_doc.asStrippedHTML())
except LookupError: except LookupError:
raise LookupError(link_reference) pass
doc_content = doc_content.replace("${related_subject_list}", blank) doc_content = doc_content.replace("${related_subject_list}", blank)
doc_content = doc_content.replace("${table_of_content", blank) doc_content = doc_content.replace("${table_of_content", blank)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment