Skip to content

Commit bdd7adb

Browse files
authored
Merge branch 'main' into add_me
2 parents 27ceb23 + adf86fd commit bdd7adb

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ contextlib2==0.5.5
99
decorator==4.4.2
1010
dephell-specifier==0.2.1
1111
dj-database-url==0.4.2
12-
Django==3.0.7
12+
Django==3.0.13
1313
django-filter==2.2.0
14-
djangorestframework==3.11.0
14+
djangorestframework==3.11.2
1515
django-widget-tweaks==1.4.8
1616
drf-spectacular==0.13.0
1717
gunicorn==19.7.1
@@ -54,5 +54,5 @@ whitenoise==5.0.1
5454
zipp==0.6.0
5555
requests==2.23.0
5656
toml==0.10.2
57-
PyYAML==5.3.1
57+
PyYAML==5.4
5858
freezegun==1.1.0

vulnerabilities/package_managers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,12 @@ def nuget_url(pkg_name: str) -> str:
288288
def extract_versions(resp: dict) -> Set[str]:
289289
all_versions = set()
290290
try:
291-
for entry in resp["items"][0]["items"]:
292-
all_versions.add(entry["catalogEntry"]["version"])
293-
# json response for YamlDotNet.Signed triggers this exception
291+
for entry_group in resp["items"]:
292+
for entry in entry_group["items"]:
293+
all_versions.add(entry["catalogEntry"]["version"])
294+
# FIXME: json response for YamlDotNet.Signed triggers this exception.
295+
# Some packages with many versions give a response of a list of endpoints.
296+
# In such cases rather, we should collect data from those endpoints.
294297
except KeyError:
295298
pass
296299

0 commit comments

Comments
 (0)