Skip to content

Commit

Permalink
Fix . When value is false return instead of raising DistutilsSetupErr…
Browse files Browse the repository at this point in the history
…or exception
  • Loading branch information
JamMarHer committed Apr 20, 2023
1 parent f11f8b1 commit 979c2e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def invalid_unless_false(dist, attr, value):
if not value:
DistDeprecationWarning.emit(f"{attr} is ignored.")
# TODO: should there be a `due_date` here?
return
raise DistutilsSetupError(f"{attr} is invalid.")


Expand Down

0 comments on commit 979c2e0

Please sign in to comment.