MCPcopy Create free account
hub / github.com/ScalingIntelligence/tokasaurus / wrapper

Function wrapper

tokasaurus/utils.py:500–509  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

498
499 @wraps(func)
500 def wrapper(*args, **kwargs):
501 try:
502 return func(*args, **kwargs)
503 except Exception as e:
504 print("Caught error - reprinting and reraising")
505 print("-" * 80)
506 print(e)
507 traceback.print_exc()
508 print("-" * 80)
509 raise
510
511 return wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected