소스 검색

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

Ask Solem 9 년 전
부모
커밋
011e1f110b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      celery/backends/mongodb.py

+ 2 - 0
celery/backends/mongodb.py

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