---------------------------------------------------------------------------
ResponseError Traceback (most recent call last)
<ipython-input-12-0f28a24e031c> in <module>()
----> 1 r.zcard('ALL:IID')
/Users/zoomq/.pyenv/versions/3.6.1/envs/DU361/lib/python3.6/site-packages/redis/client.py in zcard(self, name)
1593 def zcard(self, name):
1594 "Return the number of elements in the sorted set ``name``"
-> 1595 return self.execute_command('ZCARD', name)
1596
1597 def zcount(self, name, min, max):
/Users/zoomq/.pyenv/versions/3.6.1/envs/DU361/lib/python3.6/site-packages/redis/client.py in execute_command(self, *args, **options)
571 try:
572 connection.send_command(*args)
--> 573 return self.parse_response(connection, command_name, **options)
574 except (ConnectionError, TimeoutError) as e:
575 connection.disconnect()
/Users/zoomq/.pyenv/versions/3.6.1/envs/DU361/lib/python3.6/site-packages/redis/client.py in parse_response(self, connection, command_name, **options)
583 def parse_response(self, connection, command_name, **options):
584 "Parses a response from the Redis server"
--> 585 response = connection.read_response()
586 if command_name in self.response_callbacks:
587 return self.response_callbacks[command_name](response, **options)
/Users/zoomq/.pyenv/versions/3.6.1/envs/DU361/lib/python3.6/site-packages/redis/connection.py in read_response(self)
580 raise
581 if isinstance(response, ResponseError):
--> 582 raise response
583 return response
584
ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value