Browse Source

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

Ask Solem 14 years ago
parent
commit
94403fa9e7
1 changed files with 1 additions and 1 deletions
  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):