Example #1
0
 def response_handler(resp: Response) -> Jsons:
     if resp.is_success:
         return [format_service_data(service) for service in resp.body]
     raise FoxxServiceListError(resp, request)
Example #2
0
 def response_handler(resp: Response) -> Json:
     if resp.is_success:
         return format_service_data(resp.body)
     raise FoxxDevModeDisableError(resp, request)
Example #3
0
 def response_handler(resp: Response) -> Json:
     if resp.is_success:
         return format_service_data(resp.body)
     raise FoxxScriptListError(resp, request)
Example #4
0
 def response_handler(resp: Response) -> Json:
     if resp.is_success:
         return format_service_data(resp.body)
     raise FoxxDependencyReplaceError(resp, request)