SyncServer - fix roots must have root key

This commit is contained in:
Petr Kalis 2021-04-07 17:39:58 +02:00
parent 8a341996f6
commit cc832d0156

View file

@ -145,10 +145,11 @@ class AbstractProvider:
Returns:
(string): proper url
"""
if not root_config:
root_config = self.get_roots_config(anatomy)
if root_config and not root_config.get("root"):
root_config = {"root": root_config}
else:
root_config = self.get_roots_config(anatomy)
try:
if not root_config: