Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Mar 28, 2024
1 parent cac9d60 commit 8a42539
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/shell_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def run_with_output(self) -> None:
if output == b'' and process.poll() is not None:
break
if output:
print(output.decode().strip())
LOGGER.debug(output.decode().strip())
err = process.stderr.readline()
if err:
LOGGER.warn(err.decode().strip())
rc = process.poll()
remaining_err = process.stderr.read()
if remaining_err:
LOGGER.warn(remaining_err.decode().strip())
self.check_status(rc, process.stderr.read())
4 changes: 3 additions & 1 deletion scripts/build_spelling_dicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def main():
for file in file_list:
file.close()
if FORCE_INSTALL:
install_dictionaries(CUSTOM_INSTALL_VERSION)
custom_install_env_var_name = DIC_VARIANTS[0].lang.upper() + "_DICT_VERSION"
custom_version: tuple[str, str] = (custom_install_env_var_name, CUSTOM_INSTALL_VERSION)
install_dictionaries(custom_version)
end_time = datetime.now()
LOGGER.debug(f"Finished at {end_time.strftime('%r')}. "
f"Total time elapsed: {pretty_time_delta(end_time - start_time)}.")
Expand Down

0 comments on commit 8a42539

Please sign in to comment.