From 4ba38c8863a647037043e877ec69cfe5868e7a2c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 29 2015 07:35:26 +0000 Subject: Check that there is an error before checking for its description --- diff --git a/pagure/templates/not_found.html b/pagure/templates/not_found.html index c512c40..06c8982 100644 --- a/pagure/templates/not_found.html +++ b/pagure/templates/not_found.html @@ -6,7 +6,7 @@ {% block content %}

Page not found (404)

- {% if error.description %} + {% if error and error.description %}

With the message:

{{ error.description }}
{% else %}