Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kernc/backtesting.py
/ try_
Function
try_
backtesting/_util.py:26–30 ·
view source on GitHub ↗
(lazy_func, default=None, exception=Exception)
Source
from the content-addressed store, hash-verified
24
25
26
def
try_(lazy_func, default=None, exception=Exception):
27
try
:
28
return
lazy_func()
29
except
exception:
30
return
default
31
32
33
@contextmanager
Callers
6
_plot_indicators
Function · 0.90
init
Method · 0.90
next
Method · 0.90
I
Method · 0.85
__repr__
Method · 0.85
run
Method · 0.85
Calls
no outgoing calls
Tested by
5
init
Method · 0.72
next
Method · 0.72
I
Method · 0.68
__repr__
Method · 0.68
run
Method · 0.68