Skip to content

Commit bed9e92

Browse files
Changes Accepted from Copilot
Co-authored-by: Copilot <[email protected]>
1 parent bb53688 commit bed9e92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/history/cosmosdbservice.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def __init__(
3636
)
3737
except exceptions.CosmosResourceNotFoundError:
3838
raise ValueError("Invalid CosmosDB database name")
39-
except:
40-
pass
39+
except Exception as e:
40+
logging.error("Unexpected error while accessing CosmosDB database: %s", e)
41+
raise
4142

4243
try:
4344
self.container_client = self.database_client.get_container_client(

0 commit comments

Comments
 (0)