You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a little example as a "proof of bug" In normal redis this command (r_serv.scard("i")) would return a "0" if not existing: http://redis.io/commands/scard
In [1]: import redis
In [3]: r_serv = redis.StrictRedis("127.0.0.1", 8323, 10)
In [4]: r_serv.smembers("i")
Out[4]: set([])
In [5]: r_serv.scard("i")
/usr/local/lib/python2.7/dist-packages/redis/client.pyc in scard(self, name)
1250 def scard(self, name):
1251 "Return the number of elements in set name"
-> 1252 return self.execute_command('SCARD', name)
1253
1254 def sdiff(self, keys, *args):
This is a little example as a "proof of bug" In normal redis this command (r_serv.scard("i")) would return a "0" if not existing: http://redis.io/commands/scard
In [1]: import redis
In [3]: r_serv = redis.StrictRedis("127.0.0.1", 8323, 10)
In [4]: r_serv.smembers("i")
Out[4]: set([])
In [5]: r_serv.scard("i")
TypeError Traceback (most recent call last)
in ()
----> 1 r_serv.scard("i")
/usr/local/lib/python2.7/dist-packages/redis/client.pyc in scard(self, name)
1250 def scard(self, name):
1251 "Return the number of elements in set
name
"-> 1252 return self.execute_command('SCARD', name)
1253
1254 def sdiff(self, keys, *args):
/usr/local/lib/python2.7/dist-packages/redis/client.pyc in execute_command(self, _args, *_options)
459 try:
460 connection.send_command(_args)
--> 461 return self.parse_response(connection, command_name, *_options)
462 except ConnectionError:
463 connection.disconnect()
/usr/local/lib/python2.7/dist-packages/redis/client.pyc in parse_response(self, connection, command_name, *_options)
471 response = connection.read_response()
472 if command_name in self.response_callbacks:
--> 473 return self.response_callbacks command_name (response, *_options)
474 return response
475
TypeError: int() argument must be a string or a number, not 'NoneType'
The text was updated successfully, but these errors were encountered: