From c0b366d558e9d51c2e5ad62d482eab45e903d7db Mon Sep 17 00:00:00 2001 From: fatihsucu Date: Fri, 17 Apr 2015 12:25:16 +0300 Subject: [PATCH] fixed type in version controller --- celery/backends/mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celery/backends/mongodb.py b/celery/backends/mongodb.py index 278eb6496c8..1abb1bbe042 100644 --- a/celery/backends/mongodb.py +++ b/celery/backends/mongodb.py @@ -80,7 +80,7 @@ def __init__(self, app=None, url=None, **kwargs): # default options according to pymongo version - if pymongo.version_tuple >= 3: + if pymongo.version_tuple >= (3,): self.options.setdefault('maxPoolSize', self.max_pool_size) else: self.options.setdefault('max_pool_size', self.max_pool_size)