Skip to content

Commit

Permalink
MemcachedKeyCharacterError better describes error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Reifschneider committed Sep 21, 2014
1 parent 2251916 commit fbfae69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* MemcachedKeyCharacterError better describes key problem.
Suggested by Roy Smith

* Added touch(), patch by erankor on github.

* Allow empty server list, patch by zewt on github.
Expand Down
2 changes: 1 addition & 1 deletion memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ def check_key(self, key, key_extra_len=0):
)
if not valid_key_chars_re.match(key):
raise Client.MemcachedKeyCharacterError(
"Control characters not allowed")
"Control/space characters not allowed (key=%r)" % key)


class _Host(object):
Expand Down

0 comments on commit fbfae69

Please sign in to comment.