summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorRoey Prat <roey.prat@redislabs.com>2018-10-17 15:36:04 +0300
committerRoey Prat <roey.prat@redislabs.com>2018-10-28 12:12:54 +0200
commit04784cb2ecb0847198aaf64102e5129868c17da6 (patch)
tree2495cbb9fe7eccf915d9e6d4492b7baa06a74ff5 /redis/client.py
parent07eacf3ba5e5f87bafe992a51e04971ee0fd8b12 (diff)
downloadredis-py-04784cb2ecb0847198aaf64102e5129868c17da6.tar.gz
pycodestyle fixes in client
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index ed57ffb..a69b847 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -195,7 +195,7 @@ def pairs_to_dict_typed(response, type_info):
if key in type_info:
try:
value = type_info[key](value)
- except:
+ except Exception:
# if for some reason the value can't be coerced, just use
# the string value
pass
@@ -326,6 +326,7 @@ def parse_zscan(response, **options):
it = iter(r)
return long(cursor), list(izip(it, imap(score_cast_func, it)))
+
def parse_slowlog_get(response, **options):
return [{
'id': item[0],