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

Unified Diff: sitescripts/reports/web/submitReport.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 | « sitescripts/reports/bin/parseNewReports.py ('k') | sitescripts/stats/bin/logprocessor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/web/submitReport.py
===================================================================
--- a/sitescripts/reports/web/submitReport.py
+++ b/sitescripts/reports/web/submitReport.py
@@ -62,7 +62,7 @@
knownIssues = knownIssuesParser.findMatches(data.splitlines(), params.get('lang', ['en-US'])[0])
os.rename(path + '.tmp', path)
- except Exception, e:
+ except Exception as e:
if os.path.isfile(path + '.tmp'):
os.remove(path + '.tmp')
raise e
« no previous file with comments | « sitescripts/reports/bin/parseNewReports.py ('k') | sitescripts/stats/bin/logprocessor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld