Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/bin/test_server.py

Issue 29350329: Issue 4382 - Use new syntax to catch exceptions in cms (Closed)
Patch Set: Created Aug. 30, 2016, 1:30 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cms/bin/generate_static_pages.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/bin/test_server.py
===================================================================
--- a/cms/bin/test_server.py
+++ b/cms/bin/test_server.py
@@ -160,7 +160,7 @@
def wrapper(environ, start_response):
try:
return app(environ, start_response)
- except Exception, e:
+ except Exception as e:
return show_error(start_response, '500 Internal Server Error',
uri=environ.get('PATH_INFO'), error=e)
« no previous file with comments | « cms/bin/generate_static_pages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld