Issue #9 new

loop redis keys

magik cypress
created an issue

For python 2.6

$ src/

77 > for key in self.redis.keys('title:*'):
77 < for key in self.redis.keys('title:*').split():

redis.keys send a string with python 2.6. use split for create string to list

Comments (4)

  1. magik cypress reporter

    Yes i use redis-2.7.2-py2.6 for my remote server with Python 2.6. On my local desktop, I use redis-2.7.2-py2.7 with Python 2.7 and I doesn't have any problem.

    title: title: title: title: title:
    INFO:werkzeug: - - [26/Mar/2013 14:00:19] "GET /a HTTP/1.0" 500 -
    ERROR:werkzeug:Error on request:
    Traceback (most recent call last):
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/", line 159, in run_wsgi
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/", line 146, in execute
        application_iter = app(environ, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/", line 167, in __call__
        return self.wsgi_app(environ, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/lib/python2.6/site-packages/werkzeug/", line 411, in __call__
        return, start_response)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/", line 163, in wsgi_app
        response = self.dispatch_request(request)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/", line 157, in dispatch_request
        return getattr(self, 'on_' + endpoint)(request, **values)
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/", line 135, in on_render_archives
        archives =
      File "/etc/virtualenv/sites/.virtualenvs/contentbrowser/src/", line 80, in retrieve_archives
        'url': key.split(':', 1)[1],
    IndexError: list index out of range
  2. Log in to comment