diff options
author | th13f <fpm.th13f@gmail.com> | 2015-10-26 14:05:47 +0300 |
---|---|---|
committer | th13f <fpm.th13f@gmail.com> | 2015-10-26 14:05:47 +0300 |
commit | 01460eb3b6abb8151faf1da9b9703f15b6a7ad64 (patch) | |
tree | 0572fd6c38ee617279d01e72abaa44b407bf401e /redis/connection.py | |
parent | d8507a7903c19a73a8bbcc33ce75c4f691890c2b (diff) | |
download | redis-py-01460eb3b6abb8151faf1da9b9703f15b6a7ad64.tar.gz |
decreased length of exception class retrieving line
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 5 |
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) |