mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
additional sanity check. secondaryDB cannot be closed.
This commit is contained in:
parent
9e28205502
commit
91116b629e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue