Skip to content

Commit a5768bc

Browse files
committed
lint
1 parent 8968f30 commit a5768bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/iterative_telemetry/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def log(
8080
action: str = None,
8181
skip: Union[bool, Callable[[TelemetryEvent], bool]] = None,
8282
):
83-
def decorator(f):
84-
@wraps(f)
83+
def decorator(func):
84+
@wraps(func)
8585
def inner(*args, **kwargs):
8686
with self.event_scope(
87-
interface, action or f.__name__
87+
interface, action or func.__name__
8888
) as event:
8989
try:
90-
return f(*args, **kwargs)
91-
except Exception as e:
92-
event.error = e.__class__.__name__
90+
return func(*args, **kwargs)
91+
except Exception as exc:
92+
event.error = exc.__class__.__name__
9393
raise
9494
finally:
9595
if (

0 commit comments

Comments
 (0)