Changing unknown flags on GET to raise ValueError.

This commit is contained in:
Sean Reifschneider
2013-08-25 12:43:03 -06:00
parent bd62cfd367
commit 794b02811d
2 changed files with 4 additions and 0 deletions

View File

@@ -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.

View File

@@ -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