Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Feb 2, 2024
1 parent dbd2646 commit 25bcdaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snakemake_interface_common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def format_arg(self, arg):
return "{}{}:\n{}".format(
arg.__class__.__name__, spec, textwrap.indent(str(arg), " ")
)
elif sys.version_info >= (3, 11) and isinstance(arg, ExceptionGroup): # noqa: F821
elif sys.version_info >= (3, 11) and isinstance(
arg, ExceptionGroup
): # noqa: F821
return "\n".join(self.format_arg(exc) for exc in arg.exceptions)
else:
return f"{arg.__class__.__name__}: {arg}"
Expand Down

0 comments on commit 25bcdaa

Please sign in to comment.