MCPcopy
hub / github.com/omkarcloud/botasaurus / is_errors_instance

Function is_errors_instance

botasaurus/utils.py:16–21  ·  view source on GitHub ↗
(instances, error)

Source from the content-addressed store, hash-verified

14 super().__init__(message)
15
16def is_errors_instance(instances, error):
17 for i in range(len(instances)):
18 ins = instances[i]
19 if isinstance(error, ins):
20 return True, i
21 return False, -1
22
23def relative_path(path, goback=0):
24 levels = [".."] * (goback + -1)

Callers 4

run_taskFunction · 0.70
run_taskFunction · 0.70
run_taskFunction · 0.70
wrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected