mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
additional sanity check. secondaryDB cannot be closed.
This commit is contained in:
@@ -1172,6 +1172,7 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
|
||||
makeTypeError("DB", (PyObject*)secondaryDB);
|
||||
return NULL;
|
||||
}
|
||||
CHECK_DB_NOT_CLOSED(secondaryDB);
|
||||
if (callback == Py_None) {
|
||||
callback = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user