Explorar o código

[result][mongodb] Fixes as_uri() when not configured by url (Issue #3094)

Ask Solem %!s(int64=9) %!d(string=hai) anos
pai
achega
5df1ce67d7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      celery/backends/mongodb.py

+ 2 - 0
celery/backends/mongodb.py

@@ -301,6 +301,8 @@ class MongoBackend(BaseBackend):
         :keyword include_password: Censor passwords.
 
         """
+        if not self.url:
+            return 'mongodb://'
         if include_password:
             return self.url