Skip to content

Commit 67aac34

Browse files
Apply batched suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 8b8df56 commit 67aac34

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/jobs/get_use_case_commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def handle_automation_env(host_name, reqs):
8080
setup_env.append(_add_to_bashrc(f'export PATH={python_dir}:$PATH'))
8181
else:
8282
python_path = shutil.which('python3')
83-
83+
if python_path is None:
84+
raise RuntimeError('python3 not found in PATH; cannot determine base-image Python executable')
8485
# if py_embed listed in requirements and using a Python
8586
# environment that differs from the MET env, set MET_PYTHON_EXE
8687
py_embed_arg = ''

metplus/util/config_metplus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def getbool(self, sec, name, default=None):
897897
return False
898898

899899
# if value is not correct type, log error and return None
900-
self.logger.error(f"[{sec}] {name} must be an boolean.")
900+
self.logger.error(f"[{sec}] {name} must be a boolean.")
901901
return None
902902

903903
def getint(self, sec, name, default=None):

0 commit comments

Comments
 (0)