Skip to content

Commit

Permalink
Changing unknown flags on GET to raise ValueError.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Reifschneider committed Aug 25, 2013
1 parent bd62cfd commit 794b028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
1 change: 1 addition & 0 deletions memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ def _recv_value(self, server, flags, rlen):
return None
else:
self.debuglog("unknown flags on get: %x\n" % flags)
raise ValueError('Unknown flags on get: %x' % flags)

return val

Expand Down

0 comments on commit 794b028

Please sign in to comment.