active site is also used from sync server when roots are filled

This commit is contained in:
iLLiCiTiT 2021-02-25 15:01:09 +01:00
parent 812abd3a90
commit 1c727612f6

View file

@ -408,6 +408,17 @@ def apply_local_settings_on_anatomy_settings(
if not active_site:
active_site = default_locals.get("active_site")
if not active_site:
project_settings = get_project_settings(project_name)
active_site = (
project_settings
["global"]
["sync_server"]
["config"]
["active_site"]
)
# QUESTION should raise an exception?
if not active_site:
return