MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / raiseDataApiError

Function raiseDataApiError

Algorithmia/errors.py:26–31  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

24
25
26def raiseDataApiError(result):
27 if 'error' in result:
28 if 'message' in result['error']:
29 return DataApiError(result['error']['message'])
30 else:
31 return DataApiError(result['error'])
32
33
34def raiseAlgoApiError(result):

Callers 6

putMethod · 0.90
putJsonMethod · 0.90
putFileMethod · 0.90
deleteMethod · 0.90
putJsonMethod · 0.90
putFileMethod · 0.90

Calls 1

DataApiErrorClass · 0.85

Tested by

no test coverage detected