[domain] do not raise exception when the router is missing the ROUTES variable in halfapi/acls route
This commit is contained in:
parent
b45c0bf746
commit
0e669b81b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue