#33061: ValueError not raised by some cache backends for incr() / decr() with negative delta when a key is missing -------------------------------------+------------------------------------- Reporter: Chris Jerdonek | Owner: Sondre | Lillebø Gundersen Type: Bug | Status: assigned Component: Core (Cache system) | Version: 3.2 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Sondre Lillebø Gundersen):
* cc: Sondre Lillebø Gundersen (added) * has_patch: 0 => 1 Comment: Opened at PR for this: https://github.com/django/django/pull/14810 :) As far as I can tell, it should now work as I expected it to originally - and I think that fixes any uncertainty around the handling of a missing key, since negative deltas are now treated the same as positive deltas, just with the extra step. -- Ticket URL: <https://code.djangoproject.com/ticket/33061#comment:12> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.9eae7b7e571e9db35b4172d677c58491%40djangoproject.com.