Commit 834bd7b7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Skip more, if fails.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21994 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61ba0e3f
...@@ -161,7 +161,7 @@ class TextDocument(Document, TextContent): ...@@ -161,7 +161,7 @@ class TextDocument(Document, TextContent):
mapping = guarded_getattr(self, method_id)(**kw) mapping = guarded_getattr(self, method_id)(**kw)
except AttributeError: except AttributeError:
LOG('TextDocument', WARNING, 'could not get the substitution mapping method %s from %r, so the content will not be substituted.' % (method_id, self)) LOG('TextDocument', WARNING, 'could not get the substitution mapping method %s from %r, so the content will not be substituted.' % (method_id, self))
mapping = {} return text
is_str = isinstance(text, str) is_str = isinstance(text, str)
if is_str: if is_str:
......
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