Revert "swicth confing load order"

This reverts commit b5aab16bf590cacff1825410d9cfaea925de5b24.

Change was broken. If we simply switch there, the error when loading the
config will not be reported correctly. We should find a better way.
This commit is contained in:
benoitc 2014-06-28 17:06:18 +02:00
parent b5aab16bf5
commit 46afb979e2

View File

@ -107,9 +107,9 @@ class Application(BaseApplication):
"""
try:
cfg = self.get_config_from_filename(filename=location)
except ImportError:
cfg = self.get_config_from_module_name(module_name=location)
except ImportError:
cfg = self.get_config_from_filename(filename=location)
for k, v in cfg.items():
# Ignore unknown names