Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3723252

Browse filesBrowse files
author
Gabriel Gravel
committed
Add default to _after_request_fn
1 parent fcf20ad commit 3723252
Copy full SHA for 3723252

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎flask_opentracing/tracer.py

Copy file name to clipboardExpand all lines: flask_opentracing/tracer.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ def _before_request_fn(self, attributes):
9292

9393
def _after_request_fn(self):
9494
request = stack.top.request
95-
span = self._current_spans.pop(request)
95+
span = self._current_spans.pop(request, None)
9696
if span is not None:
9797
span.finish()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.