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: if progress is not None:
progress.close() progress.close()
stdout.write( stdout.write(msg.row(data, widths=table_widths, aligns=table_aligns) + "\n")
msg.row(data, widths=table_widths, aligns=table_aligns) + "\n"
)
if progress_bar: if progress_bar:
# Set disable=None, so that it disables on non-TTY # Set disable=None, so that it disables on non-TTY
progress = tqdm.tqdm( progress = tqdm.tqdm(

View File

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