Skip to content

Commit

Permalink
Loader: Now ignores CELERY_CONFIG_MODULE if value is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Sep 18, 2013
1 parent f443bfa commit 5dd7f6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions celery/loaders/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ def read_configuration(self, env='CELERY_CONFIG_MODULE'):
except KeyError:
pass
else:
usercfg = self._import_config_module(custom_config)
return DictAttribute(usercfg)
if custom_config:
usercfg = self._import_config_module(custom_config)
return DictAttribute(usercfg)
return {}

def autodiscover_tasks(self, packages, related_name='tasks'):
Expand Down

0 comments on commit 5dd7f6a

Please sign in to comment.