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

Unified Diff: sitescripts/crashes/web/submitCrash.py

Issue 29350318: Issue 4382 - Use new syntax to catch exceptions in sitescripts (Closed)
Patch Set: Created Aug. 30, 2016, 1:28 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 | « no previous file | sitescripts/extensions/bin/createNightlies.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/crashes/web/submitCrash.py
===================================================================
--- a/sitescripts/crashes/web/submitCrash.py
+++ b/sitescripts/crashes/web/submitCrash.py
@@ -54,7 +54,7 @@
file.write(environ['wsgi.input'].read(request_body_size))
file.close()
os.rename(filename, os.path.splitext(filename)[0])
- except Exception, e:
+ except Exception as e:
if filename != None and os.path.isfile(filename):
os.remove(filename)
raise e
« no previous file with comments | « no previous file | sitescripts/extensions/bin/createNightlies.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld