This is a tornado template (say, in the file logout.html) I render on an error in the logout process:
{% if logout_error %} Oops! The logout failed. Please
You can use
{% if locals().get('logout_error', False) %}
Substitute False with the value you want if the property is not set.
False