Skip to content

Commit

Permalink
Merge pull request #52 from yongjiel/ECMSCC-10225
Browse files Browse the repository at this point in the history
[ECMSCC-10225] A bug in clc package after switch to py3
  • Loading branch information
Shi Jin authored Jun 15, 2020
2 parents 6273f7e + 6c72cf4 commit cd4b549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clc/APIv2/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def WaitUntilComplete(self,poll_freq=2,timeout=None):
elif status in ("failed", "unknown"): self.error_requests.append(request)

self.requests = cur_requests
if self.requests > 0 and clc.v2.time_utils.TimeoutExpired(start_time, timeout):
if len(self.requests) > 0 and clc.v2.time_utils.TimeoutExpired(start_time, timeout):
raise clc.RequestTimeoutException('Timeout waiting for Requests: {0}'.format(self.requests[0].id),
self.requests[0].Status())

Expand Down

0 comments on commit cd4b549

Please sign in to comment.