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

Unified Diff: sitescripts/extensions/bin/createNightlies.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/crashes/web/submitCrash.py ('k') | sitescripts/extensions/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/bin/createNightlies.py
===================================================================
--- a/sitescripts/extensions/bin/createNightlies.py
+++ b/sitescripts/extensions/bin/createNightlies.py
@@ -425,7 +425,7 @@
try:
self.feed(data)
self.close()
- except Exception, e:
+ except Exception as e:
if e != self.dummy_exception:
raise
@@ -627,7 +627,7 @@
build = NightlyBuild(repo)
if build.hasChanges():
build.run()
- except Exception, ex:
+ except Exception as ex:
logging.error('The build for %s failed:', repo)
logging.exception(ex)
« no previous file with comments | « sitescripts/crashes/web/submitCrash.py ('k') | sitescripts/extensions/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld