ignore xpi detail if id not parsed

This commit is contained in:
ytshen 2024-12-26 23:14:12 +08:00
parent fe63c823e3
commit 66752b9ee0

View File

@ -204,7 +204,7 @@ def parse_xpi_detail(plugin: AddonInfo, release: AddonInfoRelease, release_asset
for xpi_url in xpi_urls:
update_details = xpi_detail(xpi_url=xpi_url,
xpi_filename=f'{plugin.owner}#{plugin.repository}+update{details.version}.xpi')
if update_details and update_details.check_compatible_for_zotero_version(release.zotero_check_version):
if update_details and update_details.id and update_details.check_compatible_for_zotero_version(release.zotero_check_version):
details = update_details
release.xpiDownloadUrl = {
'github': xpi_url,