From 177c2886e0c57bd8f5b21e631e57e1fbd6dedcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles=20Bouchard-L=C3=A9gar=C3=A9?= Date: Fri, 30 Apr 2021 14:00:43 -0400 Subject: [PATCH] Fix get_hashes returning a non existing key --- pyup/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyup/requirements.py b/pyup/requirements.py index ce2a0b4..5c38968 100644 --- a/pyup/requirements.py +++ b/pyup/requirements.py @@ -470,7 +470,7 @@ def get_hashes(self, version): sha256 = item.get("digests", {}).get("sha256", False) if sha256: hashes.append({"hash": sha256}) - return data["hashes"] + return hashes def update_content(self, content, update_hashes=True): if self.file_type == filetypes.tox_ini: