Skip to content

Commit

Permalink
Update installer_data.py
Browse files Browse the repository at this point in the history
update to handle (temporary) empty repositories

(cherry picked from commit 50b8842)
  • Loading branch information
thbaumann authored and nyalldawson committed Dec 13, 2024
1 parent 7889fc5 commit edd73a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/pyplugin_installer/installer_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,9 @@ def xmlDownloaded(self):
b.append("& ")
content = content.replace(a, b)
reposXML.setContent(content)
pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
if pluginNodes.size():
plugins_tag = reposXML.elementsByTagName("plugins")
if plugins_tag.size():
pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
for i in range(pluginNodes.size()):
fileName = pluginNodes.item(i).firstChildElement("file_name").text().strip()
if not fileName:
Expand Down

0 comments on commit edd73a9

Please sign in to comment.