Opened 4 years ago
Last modified 4 years ago
#33061 closed Bug
ValueError not raised for incr / decr with negative delta for some backends? — at Version 1
Description (last modified by ) ¶
I was looking at the code for some of the cache backends, and I noticed that in a couple places, it looks like ValueError
isn't being raised when it should be. This is in the incr() and decr() methods of BaseMemcachedCache
when delta
is less than zero. The commit where this code was added is here: https://github.com/django/django/commit/79dd751b0b9e428bf386d7304f442fa9815fdbba
This is just by looking at the code, so I could be wrong. But I wanted to flag it.
Note:
See TracTickets
for help on using tickets.