MCPcopy Create free account
hub / github.com/GerevAI/gerev / _wrap_with_try_except

Function _wrap_with_try_except

app/data_source/api/utils.py:19–27  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

17
18
19def _wrap_with_try_except(func):
20 def wrapper(*args, **kwargs):
21 try:
22 return func(*args, **kwargs)
23 except Exception as e:
24 logger.exception("Failed to parse data source", exc_info=e)
25 raise e
26
27 return wrapper
28
29
30def parse_with_workers(method_name: callable, items: list, **kwargs):

Callers 1

parse_with_workersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected