Mercurial > public > sg101
annotate gpp/legacy/models.py @ 479:32cec6cd8808
Refactor RateLimiter so that if Redis is not running, everything still runs normally (minus the rate limiting protection). My assumption that creating a Redis connection would throw an exception if Redis wasn't running was wrong. The exceptions actually occur when you issue a command. This is for #224.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Sep 2011 00:49:05 +0000 |
parents | 64c188a9d31f |
children |
rev | line source |
---|---|
bgneal@290 | 1 from django.db import models |
bgneal@290 | 2 |
bgneal@290 | 3 # Create your models here. |