Skip to content

Commit f7fd755

Browse files
committed
test
1 parent 8bb1c15 commit f7fd755

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

weave/trace/op.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ def _call_sync_func(
361361
# If the parent was traced (sampled in), the child will be too.
362362
try:
363363
call = _create_call(op, *args, __weave=__weave, **kwargs)
364-
except OpCallError as e:
365-
raise e
366-
except Exception as e:
364+
except OpCallError:
365+
raise
366+
except Exception:
367367
if get_raise_on_captured_errors():
368368
raise
369369
log_once(
@@ -448,9 +448,9 @@ def _call_sync_gen(
448448
# Proceed with tracing
449449
try:
450450
call = _create_call(op, *args, __weave=__weave, **kwargs)
451-
except OpCallError as e:
452-
raise e
453-
except Exception as e:
451+
except OpCallError:
452+
raise
453+
except Exception:
454454
if get_raise_on_captured_errors():
455455
raise
456456
log_once(
@@ -623,9 +623,9 @@ async def _call_async_func(
623623
# Proceed with tracing
624624
try:
625625
call = _create_call(op, *args, __weave=__weave, **kwargs)
626-
except OpCallError as e:
627-
raise e
628-
except Exception as e:
626+
except OpCallError:
627+
raise
628+
except Exception:
629629
if get_raise_on_captured_errors():
630630
raise
631631
log_once(
@@ -710,9 +710,9 @@ async def _call_async_gen(
710710
# Proceed with tracing
711711
try:
712712
call = _create_call(op, *args, __weave=__weave, **kwargs)
713-
except OpCallError as e:
714-
raise e
715-
except Exception as e:
713+
except OpCallError:
714+
raise
715+
except Exception:
716716
if get_raise_on_captured_errors():
717717
raise
718718
log_once(

0 commit comments

Comments
 (0)