Skip to content

Commit 1263cb6

Browse files
committed
Reformat file with black
Reformat the `__init__.py` file in the Celery instrumentation using `black`, fixing a CI linter error.
1 parent 2dd9e28 commit 1263cb6

File tree

1 file changed

+4
-5
lines changed
  • instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery

1 file changed

+4
-5
lines changed

instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def add(x, y):
6767
from billiard.einfo import ExceptionInfo
6868

6969
try:
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
7173
except 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 (

0 commit comments

Comments
 (0)