Fix fork warning
This commit is contained in:
parent
c59dcb0b7d
commit
698998cec5
|
@ -9,7 +9,7 @@ class FreifunkDB(object):
|
|||
@classmethod
|
||||
def handle(cls):
|
||||
if not cls.client:
|
||||
cls.client = MongoClient(tz_aware=True)
|
||||
cls.client = MongoClient(tz_aware=True, connect=False)
|
||||
if not cls.db:
|
||||
cls.db = cls.client.freifunk
|
||||
return cls.db
|
||||
|
|
Loading…
Reference in New Issue