Skip to content

Commit

Permalink
Update src/black/__init__.py
Browse files Browse the repository at this point in the history
That works.

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
  • Loading branch information
emfdavid and isidentical committed Jan 20, 2022
1 parent 28c9ffa commit 28d2f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def assert_equivalent(src: str, dst: str, *, pass_num: int = 1) -> None:
src_ast = parse_ast(src)
except Exception as exc:
raise AssertionError(
f"cannot use --safe with this file; failed to parse source file AST: {exc}"
f"cannot use --safe with this file; failed to parse source file AST: {exc}\n"
f"This could be caused by running black with an older python version "
f"that does not support new syntax used in your source file."
) from exc
Expand Down

0 comments on commit 28d2f32

Please sign in to comment.