Django Book 翻译
菜单>:
TOC
返回
原文:
If, during the method lookup, a method raises an exception, the exception will be propagated, unless the exception has an attribute ``silent_variable_failure`` whose value is ``True`` . If the exception *does* have a ``silent_variable_failure`` attribute, the variable will render as an empty string, for example:
翻译:
在方法查找过程中,如果某方法抛出一个异常,除非该异常有一个 ``silent_variable_failure`` 属性并且值为 ``True`` ,否则的话它将被传播。如果该异常 *确有* 属性 ``silent_variable_failure`` ,那么(所查找)变量将被渲染为空字符串,例如:
备注:
译者: