Skip to content

Commit

Permalink
Reformat file with black
Browse files Browse the repository at this point in the history
Reformat the `__init__.py` file in the Celery instrumentation using
`black`, fixing a CI linter error.
  • Loading branch information
unflxw committed Jun 19, 2023
1 parent 2dd9e28 commit 1263cb6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def add(x, y):
from billiard.einfo import ExceptionInfo

try:
from billiard.einfo import ExceptionWithTraceback # pylint: disable=no-name-in-module
from billiard.einfo import (
ExceptionWithTraceback,
) # pylint: disable=no-name-in-module
except ImportError:
ExceptionWithTraceback = None

Expand Down Expand Up @@ -279,10 +281,7 @@ def _trace_failure(*args, **kwargs):
if ex is not None:
# Unwrap the actual exception wrapped by billiard's
# `ExceptionInfo` and `ExceptionWithTraceback`.
if (
isinstance(ex, ExceptionInfo)
and ex.exception is not None
):
if isinstance(ex, ExceptionInfo) and ex.exception is not None:
ex = ex.exception

if (
Expand Down

0 comments on commit 1263cb6

Please sign in to comment.