Skip to content

Commit 40e8057

Browse files
author
Saumya Garg
committed
refactor native layer and create reusable components
1 parent 292d8e9 commit 40e8057

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mssql_python/pybind/ddbc_bindings.cpp

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

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

0 commit comments

Comments
 (0)