Skip to content

Commit 4002f47

Browse files
author
Saumya Garg
committed
resolve review comments
1 parent b7fd7e0 commit 4002f47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mssql_python/pybind/ddbc_bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,8 @@ PYBIND11_MODULE(ddbc_bindings, m) {
21432143

21442144
try {
21452145
// Try loading the ODBC driver when the module is imported
2146-
LoadDriverOrThrowException();
2146+
LOG("Loading ODBC driver");
2147+
DriverLoader::getInstance().loadDriver(); // Load the driver
21472148
} catch (const std::exception& e) {
21482149
// Log the error but don't throw - let the error happen when functions are called
21492150
LOG("Failed to load ODBC driver during module initialization: {}", e.what());

0 commit comments

Comments
 (0)