Skip to content

client doesn't recover after invalid argument in Redis.set() #24

Closed
@marw

Description

@marw

Following code does not work:

import redis.client
db = redis.client.Redis('localhost', 6379)
db.set("example","123")
True
try:
... db.set("invalid key","123")
... except Exception, e:
... print str(e)
...
wrong number of arguments for 'set' command
db.set("example","123")
Traceback (most recent call last):
...
File "<...>\redis\client.py", line 274, in _parse_response
raise ResponseError(response)
redis.exceptions.ResponseError: unknown command '123'

The same behavior is with Redis server 1.2.2 and 1.3.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions