comparison laterlinks2/laterlinks_app.py @ 69:ae0f2f438a95

myrss: add support for new "purl" RSS type
author paulo
date Thu, 11 Jun 2015 22:03:34 -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()