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

Unified Diff: sitescripts/subscriptions/bin/updateStatusPage.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/stats/bin/logprocessor.py ('k') | sitescripts/subscriptions/combineSubscriptions.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/subscriptions/bin/updateStatusPage.py
===================================================================
--- a/sitescripts/subscriptions/bin/updateStatusPage.py
+++ b/sitescripts/subscriptions/bin/updateStatusPage.py
@@ -27,7 +27,7 @@
try:
result = urllib2.urlopen(url, timeout=60).read(1)
return (url, True)
- except urllib2.HTTPError, e:
+ except urllib2.HTTPError as e:
return (url, e.code)
except:
return (url, False)
« no previous file with comments | « sitescripts/stats/bin/logprocessor.py ('k') | sitescripts/subscriptions/combineSubscriptions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld