Explorar el Código

celery.loaders.default: Only take names that are uppercase from the config module.

Ask Solem hace 14 años
padre
commit
94403fa9e7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/loaders/default.py

+ 1 - 1
celery/loaders/default.py

@@ -23,7 +23,7 @@ DEFAULT_UNCONFIGURED_SETTINGS = {
 
 
 def wanted_module_item(item):
-    return not item.startswith("_")
+    return item[0].isupper() and not item.startswith("_")
 
 
 class Loader(BaseLoader):