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

Unified Diff: sitescripts/extensions/utils.py

Issue 29370859: Issue 4767 - Improve error reporting in update_update_manifests (Closed)
Patch Set: Fix mistake while uploading the patchset Created Jan. 8, 2017, 7:26 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/utils.py
===================================================================
--- a/sitescripts/extensions/utils.py
+++ b/sitescripts/extensions/utils.py
@@ -26,6 +26,7 @@
from ConfigParser import SafeConfigParser, NoOptionError
from StringIO import StringIO
from sitescripts.utils import get_config
+from xml.parsers.expat import ExpatError
PACKAGE_SUFFIXES = {
'gecko': '.xpi',
@@ -320,6 +321,10 @@
if downloadURL is None:
raise Exception('No download link found for repo: ' +
repo.repositoryName)
+ except ExpatError:
+ traceback.print_exc()
+ print "Error found while parsing xml from %s link" % repo.repositoryName
Jon Sonesen 2017/01/09 07:48:22 Here you should be using the .format() method for
Jon Sonesen 2017/01/09 08:44:10 Oops, I also just noticed that you are using doubl
f.nicolaisen 2017/01/10 08:58:04 This adds some context (i.e. which repo) to the er
+ continue
except:
traceback.print_exc()
continue
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld