aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-11-30 02:56:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-11-30 02:56:48 +0000
commitbef506a488b442ca949568fd9cba961930110178 (patch)
tree8d94c6e8b04652067d69224ca78dc9324b4f71e9 /examples
parent2668baad173b6864e6fdb576ebf4fc0899481e86 (diff)
downloadexternal_python_mako-bef506a488b442ca949568fd9cba961930110178.tar.gz
external_python_mako-bef506a488b442ca949568fd9cba961930110178.tar.bz2
external_python_mako-bef506a488b442ca949568fd9cba961930110178.zip
localized exception
Diffstat (limited to 'examples')
-rw-r--r--examples/wsgi/index.html3
-rw-r--r--examples/wsgi/run_wsgi.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/wsgi/index.html b/examples/wsgi/index.html
index e38dde4..da9aee7 100644
--- a/examples/wsgi/index.html
+++ b/examples/wsgi/index.html
@@ -1,3 +1,4 @@
<%inherit file="root.html"/>
-This is index.html \ No newline at end of file
+This is index.html
+
diff --git a/examples/wsgi/run_wsgi.py b/examples/wsgi/run_wsgi.py
index 029e240..02ed47e 100644
--- a/examples/wsgi/run_wsgi.py
+++ b/examples/wsgi/run_wsgi.py
@@ -21,10 +21,10 @@ def serve(environ, start_response):
except exceptions.TemplateLookupException:
start_response("404 Not Found", [])
return ["Cant find template '%s'" % uri]
- except Exception, e:
+ except:
start_response("200 OK", [('Content-type','text/html')])
error_template = exceptions.html_error_template(lookup)
- return [error_template.render(error=e)]
+ return [error_template.render()]
server = wsgiServer.WSGIServer (('localhost', 8000), {'/': serve})
print "Server listening on port 8000"