This commit is contained in:
Matthew Honnibal 2020-10-03 19:26:23 +02:00
parent b305f2ff5a
commit 85ede32680
2 changed files with 3 additions and 4 deletions

View File

@ -75,9 +75,7 @@ def console_logger(progress_bar: bool = False):
)
if progress is not None:
progress.close()
stdout.write(
msg.row(data, widths=table_widths, aligns=table_aligns) + "\n"
)
stdout.write(msg.row(data, widths=table_widths, aligns=table_aligns) + "\n")
if progress_bar:
# Set disable=None, so that it disables on non-TTY
progress = tqdm.tqdm(

View File

@ -93,7 +93,8 @@ def train(
msg.warn(
f"Aborting and saving the final best model. "
f"Encountered exception: {str(e)}"
) + "\n"
)
+ "\n"
)
raise e
finally: