File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ def add(x, y):
6767from billiard .einfo import ExceptionInfo
6868
6969try :
70- from billiard .einfo import ExceptionWithTraceback # pylint: disable=no-name-in-module
70+ from billiard .einfo import (
71+ ExceptionWithTraceback ,
72+ ) # pylint: disable=no-name-in-module
7173except ImportError :
7274 ExceptionWithTraceback = None
7375
@@ -279,10 +281,7 @@ def _trace_failure(*args, **kwargs):
279281 if ex is not None :
280282 # Unwrap the actual exception wrapped by billiard's
281283 # `ExceptionInfo` and `ExceptionWithTraceback`.
282- if (
283- isinstance (ex , ExceptionInfo )
284- and ex .exception is not None
285- ):
284+ if isinstance (ex , ExceptionInfo ) and ex .exception is not None :
286285 ex = ex .exception
287286
288287 if (
You can’t perform that action at this time.
0 commit comments