Skip to content

Commit

Permalink
Fix verification
Browse files Browse the repository at this point in the history
  • Loading branch information
freud14 committed Jan 30, 2022
1 parent fee0f65 commit 52a3de5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,10 @@ def main(
out(f"Using configuration in '{config}'.", fg="blue")

error_msg = "Oh no! 💥 💔 💥"
if required_version and (
required_version != __version__ or required_version != __version__.split(".")[0]
if (
required_version
and required_version != __version__
and required_version != __version__.split(".")[0]
):
err(
f"{error_msg} The required version `{required_version}` does not match"
Expand Down

0 comments on commit 52a3de5

Please sign in to comment.