comparison laterlinks2/laterlinks_app.py @ 71:6318de36e334

pics2: limit access to index
author paulo
date Wed, 28 Oct 2015 00:57:23 -0700
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()