We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef8511c commit 4acfd05Copy full SHA for 4acfd05
1 file changed
install-poetry.py
@@ -415,10 +415,15 @@ def run(self) -> int:
415
416
def _is_self_upgrade_supported(x):
417
mx = self.VERSION_REGEX.match(x)
418
+
419
+ if mx is None:
420
+ # the version is not semver, perhaps scm or file, we assume upgrade is supported
421
+ return True
422
423
vx = tuple(int(p) for p in mx.groups()[:3]) + (mx.group(5),)
424
return vx >= (1, 2, 0)
425
- if not _is_self_upgrade_supported(version):
426
+ if version and not _is_self_upgrade_supported(version):
427
self._write(
428
colorize(
429
"warning",
0 commit comments