additional sanity check. secondaryDB cannot be closed.

This commit is contained in:
Gregory P. Smith 2005-06-06 10:28:06 +00:00
parent 9e28205502
commit 91116b629e
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}