Skip to content

Commit 61807ca

Browse files
committed
cleanup
1 parent 64eccb3 commit 61807ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/huggingface_hub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def new_huggingface_task(*args, **kwargs):
134134
res = f(*args, **kwargs)
135135
except Exception as e:
136136
_capture_exception(e)
137+
span.__exit__(None, None, None)
137138
raise e from None
138139

139140
# Output attributes

0 commit comments

Comments
 (0)