[domain] do not raise exception when the router is missing the ROUTES variable in halfapi/acls route

This commit is contained in:
Maxime Alves LIRMM@home 2021-06-30 15:13:06 +02:00
parent b45c0bf746
commit 0e669b81b0
1 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,8 @@ def router_acls(route_params: Dict, path: List, m_router: ModuleType) -> Generat
def domain_acls(m_router, path):
if not hasattr(m_router, 'ROUTES'):
logger.error('Missing *ROUTES* constant in *%s*', m_router.__name__)
raise Exception(f'No ROUTES constant for {m_router.__name__}')
#raise Exception(f'No ROUTES constant for {m_router.__name__}')
return
routes = m_router.ROUTES