diff options
author | Dan Colish <dcolish@gmail.com> | 2011-03-14 17:25:47 -0400 |
---|---|---|
committer | Dan Colish <dcolish@gmail.com> | 2011-03-14 17:25:47 -0400 |
commit | 6796d6bc9c7b7be904c31bc07b210e46f0a90652 (patch) | |
tree | c87e7bd9d1bb21debf49d717eb1639d53757f613 /redis/client.py | |
parent | 87b08426a51e5861eda796311faa0e9248c25e2c (diff) | |
download | redis-py-6796d6bc9c7b7be904c31bc07b210e46f0a90652.tar.gz |
Add exception message for DataError being thrown in hmset
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 8e85a90..7b1c1ae 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1153,7 +1153,7 @@ class Redis(threading.local): """ items = [] if len(mapping) == 0: - raise DataError + raise DataError("'hmset' with 'mapping' of length 0") for pair in mapping.iteritems(): items.extend(pair) return self.execute_command('HMSET', name, *items) |