diff --git a/celery/backends/filesystem.py b/celery/backends/filesystem.py index d0aee69efc0..e25704b9f99 100644 --- a/celery/backends/filesystem.py +++ b/celery/backends/filesystem.py @@ -61,10 +61,10 @@ def __init__(self, url=None, open=open, unlink=os.unlink, sep=os.sep, def _find_path(self, url): if not url: raise ImproperlyConfigured(E_NO_PATH_SET) - if url.startswith('file:///'): - return url[7:] if url.startswith('file://localhost/'): return url[16:] + if url.startswith('file://'): + return url[7:] raise ImproperlyConfigured(E_PATH_NON_CONFORMING_SCHEME) def _do_directory_test(self, key):