summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorth13f <fpm.th13f@gmail.com>2015-10-26 14:05:47 +0300
committerth13f <fpm.th13f@gmail.com>2015-10-26 14:05:47 +0300
commit01460eb3b6abb8151faf1da9b9703f15b6a7ad64 (patch)
tree0572fd6c38ee617279d01e72abaa44b407bf401e /redis
parentd8507a7903c19a73a8bbcc33ce75c4f691890c2b (diff)
downloadredis-py-01460eb3b6abb8151faf1da9b9703f15b6a7ad64.tar.gz
decreased length of exception class retrieving line
Diffstat (limited to 'redis')
-rwxr-xr-xredis/connection.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 98d3c04..980354d 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -97,7 +97,10 @@ class BaseParser(object):
response = response[len(error_code) + 1:]
exception_class = self.EXCEPTION_CLASSES[error_code]
if isinstance(exception_class, dict):
- return exception_class.get(response, exception_class['default'])(response)
+ return exception_class.get(
+ response,
+ exception_class['default']
+ )(response)
else:
return exception_class(response)
return ResponseError(response)