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 committed by Raito Bezarius
parent 8048398941
commit b9ed6467b7

View file

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