From 693e2a6e2ad581fafa1aabba4e78176692064ec9 Mon Sep 17 00:00:00 2001 From: Joe Sacher <321623+sacherjj@users.noreply.github.com> Date: Sat, 23 Oct 2021 12:55:23 -0400 Subject: [PATCH] Making bin mode print better. --- resources/maintainer_scripts/node_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/maintainer_scripts/node_util.py b/resources/maintainer_scripts/node_util.py index 8be97cd..cb12d57 100755 --- a/resources/maintainer_scripts/node_util.py +++ b/resources/maintainer_scripts/node_util.py @@ -92,7 +92,8 @@ def _load_config_values(self, config): config[key] = value for key in expected_keys: if key not in config.keys(): - raise ValueError(f"Expected config value not found: {key} in {file_path}") + print(f"Expected config value not found: {key} in {file_path}") + exit(1) self._url = config[source_url] self._network_name = config[network_name] self._bin_mode = config.get(bin_mode, "mainnet") @@ -200,8 +201,7 @@ def _pull_protocol_version(self, protocol_version, platform="deb"): bin_file += "_new" bin_file += ".tar.gz" config_file = "config.tar.gz" - print(bin_file) - exit(1) + print(f"Using bin mode file of {bin_file}") etc_full_path = NodeUtil.CONFIG_PATH / protocol_version bin_full_path = NodeUtil.BIN_PATH / protocol_version