File tree Expand file tree Collapse file tree
util/opentelemetry-util-genai/src/opentelemetry/util/genai/_upload Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments