Skip to content

Commit

Permalink
update forward api
Browse files Browse the repository at this point in the history
Signed-off-by: Jat <[email protected]>
  • Loading branch information
jat001 committed Dec 26, 2022
1 parent 1c9ab6f commit 996eab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/fate_flow/utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def forward_api(role, request_config):
role = role.upper()
if not hasattr(ServerRegistry, role):
ServerRegistry.load()
if not hasattr(ServerRegistry, role):
return {'retcode': 404, 'retmsg': f'role "{role.lower()}" not supported'}
registry = getattr(ServerRegistry, role)

headers = request_config.get('header', {})
Expand Down

0 comments on commit 996eab5

Please sign in to comment.