Skip to content

Commit 8b755d6

Browse files
committed
fix: 예외처리 수정
1 parent f838837 commit 8b755d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/databases/connector/trino_connector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def run_sql(self, sql: str) -> pd.DataFrame:
116116
finally:
117117
try:
118118
cursor.close()
119-
except e:
119+
logger.info("Cursor closed successfully.")
120+
except Exception as e: # pylint: disable=broad-exception-caught
120121
logger.error("Failed to close cursor: %s", e)
121122

122123
def close(self) -> None:

0 commit comments

Comments
 (0)