Skip to content

Commit d7386d7

Browse files
fix copilot comment
1 parent dcec0b0 commit d7386d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/common/database/sqldb_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def get_db_connection():
4949
logging.info("Connected using Username & Password")
5050
return conn
5151
finally:
52-
if credential:
52+
if credential and hasattr(credential, "close"):
5353
await credential.close()
5454

5555

0 commit comments

Comments
 (0)