mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
Fix: variable become undefined when extension not exist or connection error (#868)
- Fixed the issue #867 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -440,8 +440,9 @@ class QtArchives:
|
|||||||
try:
|
try:
|
||||||
extensions_xml_text = self._download_update_xml(extensions_xml_url, True)
|
extensions_xml_text = self._download_update_xml(extensions_xml_url, True)
|
||||||
except ArchiveDownloadError:
|
except ArchiveDownloadError:
|
||||||
# In case _download_update_xml ignores the hash and tries to get the url.
|
# In case _download_update_xml failed to get the url because of no extension.
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
if extensions_xml_text:
|
if extensions_xml_text:
|
||||||
self.logger.info("Found extension {}".format(ext))
|
self.logger.info("Found extension {}".format(ext))
|
||||||
update_xmls.append(UpdateXmls(extensions_target_folder, extensions_xml_text))
|
update_xmls.append(UpdateXmls(extensions_target_folder, extensions_xml_text))
|
||||||
|
|||||||
Reference in New Issue
Block a user