mirror of
https://github.com/OCA/knowledge.git
synced 2025-08-28 10:16:13 -06:00
fix pre-commit
This commit is contained in:
parent
71a2c9b51f
commit
5825662e4d
@ -34,7 +34,9 @@ try:
|
||||
if not isinstance(res, Undefined):
|
||||
return res
|
||||
except AttributeError:
|
||||
pass
|
||||
_logger.debug(
|
||||
"Neither resolve_or_missing nor resolve method available in parent context"
|
||||
)
|
||||
|
||||
# If the key is not found in the normal context, try to resolve it as a reference
|
||||
return self.parent["ref"](key)
|
||||
@ -144,7 +146,8 @@ class DocumentPage(models.Model):
|
||||
return template.render(self._get_template_variables())
|
||||
except Exception as e:
|
||||
_logger.error(
|
||||
"Template from page with id = %s cannot be processed: %s" % (self.id, str(e))
|
||||
"Template from page with id = %s cannot be processed: %s"
|
||||
% (self.id, str(e))
|
||||
)
|
||||
return self.content
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user