diff options
author | Sean Reifschneider <jafo@tummy.com> | 2013-08-25 12:43:03 -0600 |
---|---|---|
committer | Sean Reifschneider <jafo@tummy.com> | 2013-08-25 12:43:03 -0600 |
commit | 794b02811d8c6fdad304955a4602fb1324270f95 (patch) | |
tree | a00a12b7e781d4addbacd1d71b19a50efd9d4aeb | |
parent | bd62cfd367cd9896c3b1de7acc9f4d3fa68f3775 (diff) | |
download | python-memcached-794b02811d8c6fdad304955a4602fb1324270f95.tar.gz |
Changing unknown flags on GET to raise ValueError.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | memcache.py | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1,3 +1,6 @@ + * If unknown flags in get request, raises a value error rather than the + code bombing out. + * Setting the SERVER_MAX_* values after import did not work, despite being documented to. Reported by alexf101 on github. diff --git a/memcache.py b/memcache.py index cc7224a..db8e632 100644 --- a/memcache.py +++ b/memcache.py @@ -1033,6 +1033,7 @@ class Client(local): return None else: self.debuglog("unknown flags on get: %x\n" % flags) + raise ValueError('Unknown flags on get: %x' % flags) return val |