MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / wrapper

Function wrapper

methods/letta/orm/sqlalchemy_base.py:27–32  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

25
26 @wraps(func)
27 def wrapper(*args, **kwargs):
28 try:
29 return func(*args, **kwargs)
30 except TimeoutError as e:
31 logger.error(f"Timeout while executing {func.__name__} with args {args} and kwargs {kwargs}: {e}")
32 raise DatabaseTimeoutError(message=f"Timeout occurred in {func.__name__}.", original_exception=e)
33
34 return wrapper
35

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65

Tested by

no test coverage detected