raise exception instead of print

This commit is contained in:
foamyguy 2024-04-08 10:30:44 -05:00
parent 5bfe6c0185
commit 5354155113

View file

@ -107,11 +107,17 @@ def ensure_latest_bundle(bundle):
for platform in PLATFORMS:
# missing directories (new platform added on an existing install
# or side effect of pytest or network errors)
print(
# print(
# f"checking dir: {bundle.lib_dir(platform)} = "
# f"{os.path.isdir(bundle.lib_dir(platform))}",
# file=sys.stderr,
# )
# pylint: disable=unreachable
raise RuntimeError(
f"checking dir: {bundle.lib_dir(platform)} = "
f"{os.path.isdir(bundle.lib_dir(platform))}",
file=sys.stderr,
f"{os.path.isdir(bundle.lib_dir(platform))}"
)
do_update = do_update or not os.path.isdir(bundle.lib_dir(platform))
else:
do_update = True