summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorDan Colish <dcolish@gmail.com>2011-03-14 17:25:47 -0400
committerDan Colish <dcolish@gmail.com>2011-03-14 17:25:47 -0400
commit6796d6bc9c7b7be904c31bc07b210e46f0a90652 (patch)
treec87e7bd9d1bb21debf49d717eb1639d53757f613 /redis/client.py
parent87b08426a51e5861eda796311faa0e9248c25e2c (diff)
downloadredis-py-6796d6bc9c7b7be904c31bc07b210e46f0a90652.tar.gz
Add exception message for DataError being thrown in hmset
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py2
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)