mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more being intro'd
This commit is contained in:
@@ -150,7 +150,7 @@ class AssemblyAIAudioLoaderById(BaseLoader):
|
||||
)
|
||||
transcript_response.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
raise
|
||||
|
||||
transcript = transcript_response.json()["text"]
|
||||
@@ -166,7 +166,7 @@ class AssemblyAIAudioLoaderById(BaseLoader):
|
||||
)
|
||||
paragraphs_response.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
raise
|
||||
|
||||
paragraphs = paragraphs_response.json()["paragraphs"]
|
||||
@@ -181,7 +181,7 @@ class AssemblyAIAudioLoaderById(BaseLoader):
|
||||
)
|
||||
sentences_response.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
raise
|
||||
|
||||
sentences = sentences_response.json()["sentences"]
|
||||
@@ -196,7 +196,7 @@ class AssemblyAIAudioLoaderById(BaseLoader):
|
||||
)
|
||||
srt_response.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
raise
|
||||
|
||||
srt = srt_response.text
|
||||
@@ -211,7 +211,7 @@ class AssemblyAIAudioLoaderById(BaseLoader):
|
||||
)
|
||||
vtt_response.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
raise
|
||||
|
||||
vtt = vtt_response.text
|
||||
|
Reference in New Issue
Block a user