Skip to content

Commit cf1acb3

Browse files
fix: Remove unnecessary blank lines in get_db_connection function for cleaner code
1 parent 2a8f324 commit cf1acb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/common/database/sqldb_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def get_db_connection():
4444
return conn
4545
except pyodbc.Error:
4646
continue
47-
47+
4848
if conn is None:
4949
raise RuntimeError("Unable to connect using ODBC Driver 18 or 17 with Azure Credential")
5050
except Exception as e:
@@ -59,7 +59,7 @@ async def get_db_connection():
5959
return conn
6060
except pyodbc.Error:
6161
continue
62-
62+
6363
raise RuntimeError("Unable to connect using ODBC Driver 18 or 17. Install driver msodbcsql17/18.")
6464
finally:
6565
if credential and hasattr(credential, "close"):

0 commit comments

Comments
 (0)