fix error: builtins.TypeError: object of type 'int' has no len()
This commit is contained in:
parent
5dfcf94adc
commit
9bbadeb1e6
|
@ -884,10 +884,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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue