diff options
| author | Aymeric Augustin | 2013-10-26 15:29:33 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-26 15:29:33 +0200 | 
| commit | 71921c3354bf8ddf42b0de7863a88890c21c1925 (patch) | |
| tree | fbd1297c7cc0c3948140ff6581622d8f44dc2251 | |
| parent | c81259dec43f0d58d5387f0e1a572fbdc059b313 (diff) | |
| download | django-debug-toolbar-71921c3354bf8ddf42b0de7863a88890c21c1925.tar.bz2 | |
Strengthen error handling in templates panel.
Fix #292.
| -rw-r--r-- | debug_toolbar/panels/template.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py index f2f813c..b3b6707 100644 --- a/debug_toolbar/panels/template.py +++ b/debug_toolbar/panels/template.py @@ -85,6 +85,8 @@ class TemplateDebugPanel(DebugPanel):                              temp_layer[key] = '<<triggers database query>>'                          except UnicodeEncodeError:                              temp_layer[key] = '<<unicode encode error>>' +                        except Exception: +                            temp_layer[key] = '<<unhandled exception>>'                          else:                              temp_layer[key] = value                          finally: | 
