Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-yuwang committed Jun 13, 2024
1 parent dd86223 commit cb68452
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/snowflake/snowpark/_internal/open_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,10 @@ def context_manager_code_location(frame_info, func) -> Tuple[str, int]:
target_index = -1
for i, frame in enumerate(frame_info):
file_name = os.path.basename(frame.filename)
target_index = i + decorator_number + 1
if file_name in target_class:
if file_name in registration_class:
target_index = i + decorator_number + 1
continue
target_index = i + decorator_number + 1
break
frame = frame_info[target_index]
return frame.filename, frame.lineno
Expand Down

0 comments on commit cb68452

Please sign in to comment.