From ea51a903217cc1c2ee35e3cb76083c614b347ac1 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Fri, 6 Dec 2024 01:21:47 -0600 Subject: [PATCH] Do not allow data to be used before it has a value --- britney2/policies/email.py | 1 + 1 file changed, 1 insertion(+) diff --git a/britney2/policies/email.py b/britney2/policies/email.py index 6ac9307..55424f3 100644 --- a/britney2/policies/email.py +++ b/britney2/policies/email.py @@ -191,6 +191,7 @@ class EmailPolicy(BasePolicy, Rest): except URLError as e: self.logger.error("Error getting uploader from Launchpad for %s/%s: %s", pkg, version, e.reason) + return [] try: source = next(reversed(data["entries"])) # IndexError means no packages in -proposed matched this name/version,