summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-05-30 21:16:57 +0000
committerianb <devnull@localhost>2007-05-30 21:16:57 +0000
commit3e8c42b824ed0d0f021dc650c4072a037995bd8e (patch)
tree2d4af285afc2dce980f0231f5da1fbeb59ddd838 /paste/debug
parent8e921b0ef6d31306653c69483c794f09039ba2d4 (diff)
downloadpaste-3e8c42b824ed0d0f021dc650c4072a037995bd8e.tar.gz
Handle case when environ doesn't exist (request starting up)
Diffstat (limited to 'paste/debug')
-rw-r--r--paste/debug/watchthreads.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/debug/watchthreads.py b/paste/debug/watchthreads.py
index f6d5404..1048213 100644
--- a/paste/debug/watchthreads.py
+++ b/paste/debug/watchthreads.py
@@ -125,6 +125,7 @@ page_template = HTMLTemplate('''
">&#9656; Show environ</a>
<div id="environ-{{thread.thread_id}}" style="display: none">
+ {{if thread.environ:}}
<table class="environ">
{{for loop, item in looper(sorted(thread.environ.items()))}}
{{py:key, value=item}}
@@ -134,6 +135,9 @@ page_template = HTMLTemplate('''
</tr>
{{endfor}}
</table>
+ {{else}}
+ Thread is in process of starting
+ {{endif}}
</div>
{{if thread.traceback}}