We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8968f30 commit a5768bcCopy full SHA for a5768bc
src/iterative_telemetry/__init__.py
@@ -80,16 +80,16 @@ def log(
80
action: str = None,
81
skip: Union[bool, Callable[[TelemetryEvent], bool]] = None,
82
):
83
- def decorator(f):
84
- @wraps(f)
+ def decorator(func):
+ @wraps(func)
85
def inner(*args, **kwargs):
86
with self.event_scope(
87
- interface, action or f.__name__
+ interface, action or func.__name__
88
) as event:
89
try:
90
- return f(*args, **kwargs)
91
- except Exception as e:
92
- event.error = e.__class__.__name__
+ return func(*args, **kwargs)
+ except Exception as exc:
+ event.error = exc.__class__.__name__
93
raise
94
finally:
95
if (
0 commit comments