Skip to content
This repository was archived by the owner on Mar 16, 2020. It is now read-only.
This repository was archived by the owner on Mar 16, 2020. It is now read-only.

Issue running the app.py. #2

Description

@wpoosanguansit

Hi,

I just pulled your code and rerun the project. I got it running before a few months back. But now I have got this error:

    yielded = self.gen.send(next)
  File "/home/watt/Downloads/Projects/tiler/server/handlers.py", line 330, in get_featured_past
    .skip(random.randint(0, total_count - 1))
  File "/usr/lib/python2.7/random.py", line 241, in randint
    return self.randrange(a, b+1)
  File "/usr/lib/python2.7/random.py", line 217, in randrange
    raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
ValueError: empty range for randrange() (0,0, 0)

Is there any more setup that is needed to be changed or added? Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions