changeset 4802:b5d330604a9d

error: don't crash on /error/document urls 244c9b103cff was insufficient. The non-crashing page is however not so relevant ...
author Mads Kiilerich <madski@unity3d.com>
date Thu, 29 Jan 2015 21:48:31 +0100
parents 882f300d652e
children 9df497f29cf2
files kallithea/controllers/error.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/error.py	Sat Nov 15 04:23:31 2014 -0800
+++ b/kallithea/controllers/error.py	Thu Jan 29 21:48:31 2015 +0100
@@ -57,7 +57,7 @@
         resp = request.environ.get('pylons.original_response')
         c.site_name = config.get('title')
 
-        log.debug('### %s ###' % resp and resp.status)
+        log.debug('### %s ###' % (resp and resp.status or 'no response'))
 
         e = request.environ
         c.serv_p = r'%(protocol)s://%(host)s/' \