Skip to content

Instantly share code, notes, and snippets.

@dasu
Created August 25, 2014 20:29
Show Gist options
  • Save dasu/9cea7d3bd819960b05a1 to your computer and use it in GitHub Desktop.
Save dasu/9cea7d3bd819960b05a1 to your computer and use it in GitHub Desktop.
values of key and vals before being sent to sadd
i wish
['i had']
wish i
['had hots']
hots of
['the storm']
had hots
['of the']
i had
['hots of']
wish i had
['hots of the']
i had hots
['of the storm']
i wish i
['had hots of']
hots
['of']
i
['wish', 'had']
Traceback (most recent call last):
File "/home/desu/phenny-master/bot.py", line 204, in call
try: func(phenny, input)
File "/home/desu/phenny-master/modules/wafflebot.py", line 55, in wafflebot
db.sadd(key, *vals)
File "/usr/local/lib/python3.2/dist-packages/redis/client.py", line 1477, in sadd
return self.execute_command('SADD', name, *values)
File "/usr/local/lib/python3.2/dist-packages/redis/client.py", line 565, in execute_command
return self.parse_response(connection, command_name, **options)
File "/usr/local/lib/python3.2/dist-packages/redis/client.py", line 577, in parse_response
response = connection.read_response()
File "/usr/local/lib/python3.2/dist-packages/redis/connection.py", line 574, in read_response
raise response
redis.exceptions.ResponseError: wrong number of arguments for 'sadd' command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment