Commit cd8ac0d2 by Daniel Hahler Committed by Steph Samson

fix(get-poetry): use exit code 1 with non-existing version

`python get-poetry.py --version 0.12.34` should exit non-zero.

This apparently regressed in 23667d28 [1].

1: https://github.com/python-poetry/poetry/commit/23667d28a96cdf62a83e944ac977e22d3ced7590#diff-952871ed95a893e0348aa1269bf15e689d18756657cfec5c7316d05e55eb6dc6R302
parent 2d99ab4b
...@@ -352,7 +352,7 @@ class Installer: ...@@ -352,7 +352,7 @@ class Installer:
version, current_version = self.get_version() version, current_version = self.get_version()
if version is None: if version is None:
return 0 return 1
self.customize_install() self.customize_install()
self.display_pre_message() self.display_pre_message()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment