summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2013-08-25 12:43:03 -0600
committerSean Reifschneider <jafo@tummy.com>2013-08-25 12:43:03 -0600
commit794b02811d8c6fdad304955a4602fb1324270f95 (patch)
treea00a12b7e781d4addbacd1d71b19a50efd9d4aeb
parentbd62cfd367cd9896c3b1de7acc9f4d3fa68f3775 (diff)
downloadpython-memcached-794b02811d8c6fdad304955a4602fb1324270f95.tar.gz
Changing unknown flags on GET to raise ValueError.
-rw-r--r--ChangeLog3
-rw-r--r--memcache.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bf482ab..be431b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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