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()