Explorar o código

Fixed CACHE_BACKEND parsing

Ales Zoulek %!s(int64=14) %!d(string=hai) anos
pai
achega
a179038fec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/backends/cache.py

+ 1 - 1
celery/backends/cache.py

@@ -62,7 +62,7 @@ class CacheBackend(KeyValueStoreBackend):
         backend = backend or self.app.conf.CELERY_CACHE_BACKEND
         self.expires = int(self.expires)
         self.backend, _, servers = partition(backend, "://")
-        self.servers = servers.split(";")
+        self.servers = servers.rstrip('/').split(";")
         try:
             self.Client = backends[self.backend]
         except KeyError: