Skip to content

Commit 7f1a482

Browse files
committed
Fix linter
1 parent a82dab9 commit 7f1a482

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

util/opentelemetry-util-genai/src/opentelemetry/util/genai/_upload/completion_hook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ def __init__(
170170
test_path, "w", content_type=self._content_type
171171
) as file:
172172
file.write("\n")
173-
except Exception as e:
173+
except Exception as exception: # pylint: disable=broad-exception-caught
174174
raise ValueError(
175-
f"Failed to write file to the following path, upload is not working: {test_path}.\n Got error: {e}"
175+
f"Failed to write file to the following path, upload is not working: {test_path}.\n Got error: {exception}"
176176
)
177177
# Try to delete the file.. But we don't explicitly ask people to grant the GCS delete IAM permission in our
178178
# docs, so if delete fails just leave the file..
179179
try:
180180
self._fs.rm_file(test_path)
181-
except Exception:
181+
except Exception: # pylint: disable=broad-exception-caught
182182
pass
183183

184184
# Use a ThreadPoolExecutor for its queueing and thread management. The semaphore

0 commit comments

Comments
 (0)