Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error parsing update xml when extension doesn't exist.
Browse files Browse the repository at this point in the history
tsteven4 committed Dec 24, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent aeac879 commit f526c7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aqt/archives.py
Original file line number Diff line number Diff line change
@@ -441,8 +441,9 @@ def _get_archives_base(self, name, target_packages):
# The extension may or may not exist for this version and arch.
try:
extensions_xml_text = self._download_update_xml(extensions_xml_url, True)
self.logger.info("Found extension {}".format(ext))
update_xmls.append(UpdateXmls(extensions_target_folder, extensions_xml_text))
if extensions_xml_text:
self.logger.info("Found extension {}".format(ext))
update_xmls.append(UpdateXmls(extensions_target_folder, extensions_xml_text))
except ArchiveDownloadError:
# In case _download_update_xml ignores the hash and tries to get the url.
pass

0 comments on commit f526c7d

Please sign in to comment.