# HG changeset patch # User Brian Neal # Date 1324253103 0 # Node ID d9cf6f60b5a5fb70371e28e438816d584ddd4330 # Parent e9c446a644236164c695cd638dca1121dd2a69c6 Fix for trying to redis.mget() and empty list of keys. diff -r e9c446a64423 -r d9cf6f60b5a5 gpp/forums/latest.py --- a/gpp/forums/latest.py Sun Dec 18 23:55:53 2011 +0000 +++ b/gpp/forums/latest.py Mon Dec 19 00:05:03 2011 +0000 @@ -302,7 +302,7 @@ result = conn.zrevrange(UPDATED_TOPICS_SET_KEY, 0, num - 1) topic_keys = [UPDATED_TOPIC_KEY % n for n in result] - json_list = conn.mget(topic_keys) + json_list = conn.mget(topic_keys) if topic_keys else [] except redis.RedisError, e: logger.error(e)