diff --git a/lbry/lbry/wallet/server/db/reader.py b/lbry/lbry/wallet/server/db/reader.py index 820a970f5..97b72553e 100644 --- a/lbry/lbry/wallet/server/db/reader.py +++ b/lbry/lbry/wallet/server/db/reader.py @@ -91,7 +91,9 @@ def measure(func): state = ctx.get() if not state.is_tracking_metrics: return func(*args, **kwargs) - metric = state.metrics.setdefault(func.__name__, {'calls': 0, 'total': 0, 'isolated': 0}) + metric = state.metrics.setdefault(func.__name__, { + 'calls': 0, 'total': 0, 'isolated': 0, 'errors': 0 + }) state.stack.append([]) start = time.perf_counter() try: