Skip to content

Commit 7e9101f

Browse files
Update otel.__init__
1 parent bb3ca30 commit 7e9101f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blacksheep/server/otel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ async def on_stop(app):
204204
# Try calling shutdown() on app stop to flush all remaining spans.
205205
try:
206206
trace.get_tracer_provider().shutdown()
207-
except TypeError:
207+
except AttributeError:
208208
pass
209209

210210

0 commit comments

Comments
 (0)