Skip to content

Commit

Permalink
Merge pull request #1 from thbaumann/thbaumann-handle-empty-repositories
Browse files Browse the repository at this point in the history
Better handling of empty repositories
  • Loading branch information
thbaumann authored Dec 21, 2023
2 parents 55d0b1c + 50b8842 commit 841487c
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 @@ -355,8 +355,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 841487c

Please sign in to comment.