Index: sitescripts/extensions/utils.py |
=================================================================== |
--- a/sitescripts/extensions/utils.py |
+++ b/sitescripts/extensions/utils.py |
@@ -23,9 +23,11 @@ |
import urlparse |
import urllib |
import xml.dom.minidom as dom |
+import sys |
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 +322,11 @@ |
if downloadURL is None: |
raise Exception('No download link found for repo: ' + |
repo.repositoryName) |
+ except ExpatError: |
+ traceback.print_exc() |
+ print >> sys.stderr, ('Error found while parsing xml from {0} link' |
+ .format(repo.repositoryName)) |
+ continue |
except: |
traceback.print_exc() |
continue |