mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-15 01:47:06 +00:00
Use walrus operator and explicitly require python >= 3.8
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
This commit is contained in:
parent
6f5870787a
commit
ca011221cf
@ -20,7 +20,7 @@ async def get_version(name, conf, *, cache, **kwargs):
|
||||
|
||||
for version in data['releases'].keys():
|
||||
# Skip versions that are marked as yanked.
|
||||
if len(data['releases'][version]) != 0 and data['releases'][version][0]['yanked']:
|
||||
if (vers := data['releases'][version]) and vers[0]['yanked']:
|
||||
continue
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user