python test.py
14
Traceback (most recent call last):
File "test.py", line 8, in <module>
print r.get(key)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 863, in get
return self.execute_command('GET', name)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 565, in execute_command
return self.parse_response(connection, command_name, **options)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 577, in parse_response
response = connection.read_response()
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 574, in read_response
raise response
redis.exceptions.ResponseError: Operation against a key holding the wrong kind of value
Partager