Skip to content

Commit ba2b937

Browse files
committed
fix precommit
1 parent fe708ec commit ba2b937

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

util/opentelemetry-util-genai/src/opentelemetry/util/genai/_multimodal_upload/fs_uploader.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,11 @@ def _download_content(
415415
with client.stream("GET", uri) as response:
416416
# Explicitly reject 3xx redirects, to prevent old httpx versions from silently getting incorrect body
417417
if 300 <= response.status_code < 400:
418-
raise httpx.HTTPStatusError("Redirect not allowed", request=response.request, response=response)
418+
raise httpx.HTTPStatusError(
419+
"Redirect not allowed",
420+
request=response.request,
421+
response=response,
422+
)
419423
response.raise_for_status()
420424
buffer = io.BytesIO()
421425
try:

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)