Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit e1d0019

Browse files
authored
Update install_cli.py
1 parent 22a89f1 commit e1d0019

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

apps/nextra/public/scripts/install_cli.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,22 +490,17 @@ def get_target(self):
490490
["openssl", "version"],
491491
universal_newlines=True,
492492
)
493-
if not out or len(out.split()) < 2:
494-
raise ValueError("Unexpected OpenSSL version format")
495493
openssl_version = out.split(" ")[1].rstrip().lstrip()
496-
except (subprocess.SubprocessError, ValueError) as e:
494+
except Exception:
497495
self._write(
498496
colorize(
499497
"warning",
500-
f"Could not determine OpenSSL version ({str(e)}), assuming older version (1.x.x)",
498+
"Could not determine OpenSSL version, using Ubuntu-22.04-x86_64 build",
501499
)
502500
)
503-
openssl_version = "1.0.0"
504-
505-
if openssl_version.startswith("3."):
506501
return "Ubuntu-22.04-x86_64"
507502

508-
return "Ubuntu-x86_64"
503+
return "Ubuntu-22.04-x86_64"
509504

510505
def _write(self, line) -> None:
511506
sys.stdout.write(line + "\n")

0 commit comments

Comments
 (0)