diff options
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index f2b164e..0322feb 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -110,7 +110,8 @@ class PythonParser(object): # server returned an error if byte == '-': - if nativestr(response).startswith('LOADING '): + response = nativestr(response) + if response.startswith('LOADING '): # if we're loading the dataset into memory, kill the socket # so we re-initialize (and re-SELECT) next time. raise ConnectionError("Redis is loading data into memory") |