diff --git a/spacy/training/loggers.py b/spacy/training/loggers.py index 585764214..f0ca7064a 100644 --- a/spacy/training/loggers.py +++ b/spacy/training/loggers.py @@ -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( diff --git a/spacy/training/loop.py b/spacy/training/loop.py index 2e347829a..b63adb6c9 100644 --- a/spacy/training/loop.py +++ b/spacy/training/loop.py @@ -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: