Fix for redis-py version check.

This commit is contained in:
David Ziegler 2011-09-07 22:33:17 -07:00
parent 81dd557f46
commit 2f76d1719b
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class Channel(virtual.Channel):
version = getattr(redis, "__version__", (0, 0, 0))
if version:
version = tuple(version.split("."))
version = tuple(map(int, version.split(".")))
if version < (2, 4, 4):
raise VersionMismatch(
"Redis transport requires redis-py versions 2.4.4 or later. "