Skip to content

Commit

Permalink
fix(get-poetry): use exit code 1 with non-existing version
Browse files Browse the repository at this point in the history
Follow-up to python-poetry#3927, which
was reverted in python-poetry#3943,
now handling the "Latest version already installed." case
(python-poetry#3942).
  • Loading branch information
blueyed committed May 3, 2021
1 parent 25aae99 commit a21fc9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion get-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def run(self):
version, current_version = self.get_version()

if version is None:
return 0
if current_version is not None:
return 0
return 1

self.customize_install()
self.display_pre_message()
Expand Down

0 comments on commit a21fc9e

Please sign in to comment.