Mercurial > kallithea
changeset 5034:32de32f69461
error: fix handling of errors without response
Broken by 6f9dae4d39d9.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 18 Apr 2015 16:48:29 +0200 |
parents | 021012521a10 |
children | 3e20f8372681 |
files | kallithea/controllers/error.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/error.py Mon Feb 02 20:38:57 2015 +0100 +++ b/kallithea/controllers/error.py Sat Apr 18 16:48:29 2015 +0200 @@ -67,6 +67,9 @@ c.error_message = cgi.escape(request.GET.get('code', str(resp.status))) c.error_explanation = self.get_error_explanation(resp.status_int) + else: + c.error_message = _('No response') + c.error_explanation = _('Unknown error') return render('/errors/error_document.html')