# HG changeset patch # User Brian Neal # Date 1336247382 18000 # Node ID a18516692273fd78e7cf42c51bfd91480c9b3043 # Parent 4fb264b671d5eff511d67043a447c82e917b2c22 Correct my Redis API error in unit test. diff -r 4fb264b671d5 -r a18516692273 gpp/antispam/rate_limit.py --- a/gpp/antispam/rate_limit.py Sat May 05 14:18:56 2012 -0500 +++ b/gpp/antispam/rate_limit.py Sat May 05 14:49:42 2012 -0500 @@ -62,7 +62,7 @@ conn = _get_connection() try: - conn.setex(key, count, _to_seconds(interval)) + conn.setex(key, time=_to_seconds(interval), value=count) except redis.RedisError, e: logger.error("rate limit (block_ip): %s" % e) raise RateLimiterUnavailable