mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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:
parent
b5aab16bf5
commit
46afb979e2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user