Skip to content

Redis.keys: AttributeError: 'int' object has no attribute 'split' #2

Closed
@richardhenry

Description

@richardhenry
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from redis import Redis, ConnectionError, ResponseError
>>> r = Redis(db=0)
>>> r.keys('*')
[]
>>> r.set(1, 'somevalue')
'OK'
>>> r.keys('*')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/redis.py", line 337, in keys
AttributeError: 'int' object has no attribute 'split'

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