mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +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:
@@ -88,7 +88,7 @@ class SnowflakeLoader(BaseLoader):
|
||||
column_names = [column[0] for column in cur.description]
|
||||
query_result = [dict(zip(column_names, row)) for row in query_result]
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
print(f"An error occurred: {e}") # noqa: T201
|
||||
query_result = []
|
||||
finally:
|
||||
cur.close()
|
||||
@@ -110,7 +110,7 @@ class SnowflakeLoader(BaseLoader):
|
||||
def lazy_load(self) -> Iterator[Document]:
|
||||
query_result = self._execute_query()
|
||||
if isinstance(query_result, Exception):
|
||||
print(f"An error occurred during the query: {query_result}")
|
||||
print(f"An error occurred during the query: {query_result}") # noqa: T201
|
||||
return []
|
||||
page_content_columns, metadata_columns = self._get_columns(query_result)
|
||||
if "*" in page_content_columns:
|
||||
|
Reference in New Issue
Block a user