#33061: ValueError not raised by some cache backends for incr() / decr() with
negative delta when a key is missing
-------------------------------------+------------------------------------
     Reporter:  Chris Jerdonek       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  3.2
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+------------------------------------

Comment (by Mariusz Felisiak):

 Replying to [comment:7 Sondre Lillebø Gundersen]:
 >
 > The missing key would not be raised from `incr` but from `decr`, right?
 Perhaps I'm missing the point 🙂


 You're missing that it calls `self._cache.decr()` not `self.decr()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33061#comment:8>
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/067.68c2b78de479f200f34e9ea68f99cffa%40djangoproject.com.

Reply via email to