Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make complient with Ruff rule RET503
  • Loading branch information
smokestacklightnin committed Aug 9, 2025
commit 182228e396420373767af4238a593bb2d221595e
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def WaitForServerReady(port):

def CallREST(url, req, max_attempts=60):
"""Returns HTTP response body from a REST API call."""
for attempt in range(max_attempts):
for attempt in range(max_attempts): # noqa: RET503
try:
print(f'Attempt {attempt}: Sending request to {url} with data:\n{req}')
json_data = json.dumps(req).encode('utf-8') if req is not None else None
Expand Down