Catch invalid XML in links
This commit is contained in:
parent
8dcae5df50
commit
771595ba85
@ -133,7 +133,11 @@ class Importer:
|
||||
rev = OBSRevision(self.obs, self, project, package).parse(r)
|
||||
if not latest or rev.rev > latest.rev:
|
||||
dbrev = DBRevision.import_obs_rev(db, rev)
|
||||
root = rev.read_link()
|
||||
try:
|
||||
root = rev.read_link()
|
||||
except ET.ParseError:
|
||||
dbrev.set_broken(db)
|
||||
continue
|
||||
if root is not None:
|
||||
tprj = root.get("project") or project
|
||||
tpkg = root.get("package") or package
|
||||
|
Loading…
Reference in New Issue
Block a user