Skip to content

Commit 3c0af97

Browse files
authored
Update client.py
1 parent bbca177 commit 3c0af97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python_agent_harness/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _retry_delay(
7070
except ValueError:
7171
pass
7272
else:
73-
return min(secs, max_delay) + random.uniform(0, 0.5)
73+
return min(max(0, secs), max_delay) + random.uniform(0, 0.5)
7474
delay = min(base_delay * (2 ** (attempt - 1)), max_delay)
7575
return delay + random.uniform(0, delay * 0.3)
7676

0 commit comments

Comments
 (0)