summary refs log tree commit diff
path: root/synapse/logging/scopecontextmanager.py
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2021-12-20 04:18:09 -0800
committerGitHub <noreply@github.com>2021-12-20 12:18:09 +0000
commit8ad39438fafef653d019e3214037c96257507e55 (patch)
treed4f3c38900286feba9172b2602c27a59ce8652a1 /synapse/logging/scopecontextmanager.py
parentAdd type hints to `synapse/tests/rest/admin` (#11590) (diff)
downloadsynapse-8ad39438fafef653d019e3214037c96257507e55.tar.xz
Add opentracing types (#11603)
Diffstat (limited to 'synapse/logging/scopecontextmanager.py')
-rw-r--r--synapse/logging/scopecontextmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/logging/scopecontextmanager.py b/synapse/logging/scopecontextmanager.py
index b1e8e08fe9..db8ca2c049 100644
--- a/synapse/logging/scopecontextmanager.py
+++ b/synapse/logging/scopecontextmanager.py
@@ -71,7 +71,7 @@ class LogContextScopeManager(ScopeManager):
         if not ctx:
             # We don't want this scope to affect.
             logger.error("Tried to activate scope outside of loggingcontext")
-            return Scope(None, span)
+            return Scope(None, span)  # type: ignore[arg-type]
         elif ctx.scope is not None:
             # We want the logging scope to look exactly the same so we give it
             # a blank suffix