fix error: builtins.TypeError: object of type 'int' has no len()

This commit is contained in:
Yureka 2024-07-30 13:38:27 +02:00
parent 8f5ad30cb7
commit 15963fa0e6

View file

@ -846,10 +846,7 @@ def gerritReviewFmt(url, data):
builderName = build['builder']['name']
if len(build['results']) != 1:
raise ValueError('this review request contains more than one build results, unexpected format request')
result = build['results'][0]
result = build['results']
if result == util.RETRY:
return dict()