Skip to content

Commit b0bc3f0

Browse files
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 03e49bd commit b0bc3f0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

samples/costing/_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ def send_requests(
204204
session.request(method, url, headers=headers, timeout=timeout)
205205
delivered += 1
206206
except http_requests.RequestException:
207-
pass
207+
# Intentionally ignore transport-level failures so one failed call
208+
# does not abort the batch; only requests that received an HTTP
209+
# response are counted as delivered.
210+
continue
208211
return delivered
209212

210213

0 commit comments

Comments
 (0)