diff options
author | ianb <devnull@localhost> | 2007-05-30 21:16:57 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-05-30 21:16:57 +0000 |
commit | 3e8c42b824ed0d0f021dc650c4072a037995bd8e (patch) | |
tree | 2d4af285afc2dce980f0231f5da1fbeb59ddd838 /paste/debug | |
parent | 8e921b0ef6d31306653c69483c794f09039ba2d4 (diff) | |
download | paste-3e8c42b824ed0d0f021dc650c4072a037995bd8e.tar.gz |
Handle case when environ doesn't exist (request starting up)
Diffstat (limited to 'paste/debug')
-rw-r--r-- | paste/debug/watchthreads.py | 4 |
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(''' ">▸ 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}} |