From 2221872e7a277f20edcee79d7bfb29f26788c2d0 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Fri, 9 Dec 2016 12:59:24 +0000 Subject: [PATCH] sourceppa: return when recursing --- policies/sourceppa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policies/sourceppa.py b/policies/sourceppa.py index 2341863..e65422a 100644 --- a/policies/sourceppa.py +++ b/policies/sourceppa.py @@ -62,7 +62,7 @@ class SourcePPAPolicy(BasePolicy): if retries > 1: self.log("Timeout downloading '%s', will retry %d more times." % (url, retries)) - self.query_lp_rest_api(obj, query, retries - 1) + return self.query_lp_rest_api(obj, query, retries - 1) else: raise