summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-02-15 23:00:37 +0000
committerGerrit Code Review <review@openstack.org>2023-02-15 23:00:37 +0000
commitc90e91cd69785b91d7cc0622e43301936ecea4c7 (patch)
treecb41dee821f0970be72dcd0d82eaeb3c8bc0b8ad
parent7039d4f5f67ee6b647aa6baff25adf38ad25ed56 (diff)
parent8d443f1ada1453e9d8116f86a6ad45393887de7c (diff)
downloadzuul-c90e91cd69785b91d7cc0622e43301936ecea4c7.tar.gz
Merge "Fix exception on retry in source base class"
-rw-r--r--zuul/source/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/zuul/source/__init__.py b/zuul/source/__init__.py
index 01a683b23..c2487af88 100644
--- a/zuul/source/__init__.py
+++ b/zuul/source/__init__.py
@@ -97,7 +97,7 @@ class BaseSource(object, metaclass=abc.ABCMeta):
# info on subsequent requests we can continue to do the
# requested job work.
try:
- dep = self.getChangeByURL(url, event)
+ return self.getChangeByURL(url, event)
except Exception:
# Note that if the change isn't found dep is None.
# We do not raise in that case and do not need to handle it
@@ -109,7 +109,6 @@ class BaseSource(object, metaclass=abc.ABCMeta):
time.sleep(1)
else:
raise
- return dep
@abc.abstractmethod
def getChangesDependingOn(self, change, projects, tenant):