#31728: cache.backends.db._cull sometimes fails with 'NoneType' object is not
subscriptable
-------------------------------------+------------------------------------
Reporter: Guillermo Bonvehí | Owner: nobody
Type: Bug | Status: closed
Component: Core (Cache system) | Version: master
Severity: Normal | Resolution: fixed
Keywords: cache db | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"f386454d1302b66d0eb331ed0ae9e4811e2f3a15" f386454d]:
{{{
#!CommitTicketReference repository=""
revision="f386454d1302b66d0eb331ed0ae9e4811e2f3a15"
Fixed #31728 -- Fixed cache culling when no key is found for deletion.
DatabaseCache._cull implementation could fail if no key was found to
perform a deletion in the table. This prevented the new cache key/value
from being correctly added.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31728#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.d332157baf052e6bbf7f35494e6c0643%40djangoproject.com.