From 48ba2f12a176755cc20bd7bd4215afbabd383124 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 3 May 2021 16:07:40 +0200 Subject: [PATCH] fix(install-poetry): use exit code 1 with non-existing version Ref: https://github.com/python-poetry/poetry/issues/4027 --- install-poetry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-poetry.py b/install-poetry.py index ba67d3df8c8..1508870ae92 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -408,6 +408,8 @@ def run(self) -> int: version, current_version = self.get_version() if version is None: + if current_version is None: + return 1 return 0 self.display_pre_message()