mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
use is not None
for xml.etree.Element
This commit is contained in:
parent
e58142e37f
commit
056fe65e79
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ async def get_version(name, conf, **kwargs):
|
|||
continue
|
||||
for archive in pkg.findall('./archives/archive'):
|
||||
host_os = archive.find('./host-os')
|
||||
if host_os and host_os.text != 'linux':
|
||||
if host_os is not None and host_os.text != 'linux':
|
||||
continue
|
||||
archive_url = archive.find('./complete/url').text
|
||||
# revision
|
||||
|
|
Loading…
Add table
Reference in a new issue