Mercurial > hg > index.fcgi > www > www-1
comparison laterlinks2/laterlinks_app.py @ 77:6ede61cb9d12
add myw
author | paulo |
---|---|
date | Tue, 31 May 2016 23:40:17 -0600 |
parents | 9d3a95d80def |
children | f833a888c548 |
comparison
equal
deleted
inserted
replaced
0:e812f0cee4ad | 1:f6aec992e639 |
---|---|
152 response_code = "500 Internal Server Error" | 152 response_code = "500 Internal Server Error" |
153 response_type = "text/plain; charset=UTF-8" | 153 response_type = "text/plain; charset=UTF-8" |
154 | 154 |
155 try: | 155 try: |
156 response_body = main(environ) | 156 response_body = main(environ) |
157 response_code = "200 OK" | |
157 response_type = "text/html; charset=UTF-8" | 158 response_type = "text/html; charset=UTF-8" |
158 except LLError as e: | 159 except LLError as e: |
159 response_body = str(e) | 160 response_body = str(e) |
160 except: | 161 except: |
161 response_body = traceback.format_exc() | 162 response_body = traceback.format_exc() |