MCPcopy Create free account
hub / github.com/bgrimstad/splinter / _call

Function _call

python/splinter/splinter.py:227–235  ·  view source on GitHub ↗
(function, *args)

Source from the content-addressed store, hash-verified

225
226
227def _call(function, *args):
228 res = function(*args)
229
230 if _get_handle().splinter_get_error():
231 # TODO: Sometimes the string is correct, sometimes not. Investigate.
232 errorMsg = get_py_string(_get_handle().splinter_get_error_string())
233 raise Exception(errorMsg)
234
235 return res

Callers

nothing calls this directly

Calls 3

_get_handleFunction · 0.85
get_py_stringFunction · 0.85
ExceptionClass · 0.85

Tested by

no test coverage detected