fix: check for 'patched_versions' key
@@ -37,6 +37,8 @@ def import_vulnerabilities():
'affected', {}).get('functions', {}).values())
unaffected_version_range_list = advisory['advisory'].get(
'unaffected_versions', [])
+
+ if advisory['advisory'].get('patched_versions'):
patched_version_range_list = advisory['advisory']['patched_versions']
# FIXME: Make distinction between unaffected and patched packages
