From e081bd53b3e84e8d81df7a11f956210d4d4f679e Mon Sep 17 00:00:00 2001 From: Nathan Baker Date: Tue, 1 Dec 2020 06:40:44 -0800 Subject: [PATCH] Add line breaks to error message. Fixes https://github.com/jensengroup/propka/pull/109#discussion_r533131022 --- propka/ligand_pka_values.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/propka/ligand_pka_values.py b/propka/ligand_pka_values.py index c642f65..f161d88 100644 --- a/propka/ligand_pka_values.py +++ b/propka/ligand_pka_values.py @@ -164,17 +164,9 @@ class LigandPkaValues: stderr=subprocess.PIPE).communicate() if len(errors) > 0: err = ( - f'***********************************************************' - f'*********************************************' - f'* Error: Marvin execution failed: ' - f' *' - f'* {errors:<100s} *' - f'* ' - f' *' - f'* Please edit the ligand mol2 file and re-run PropKa with ' - f'the -l option: {filename:>29s} *' - f'***********************************************************' - f'*********************************************' + f'Error: Marvin execution failed: {errors}\n' + f'Please edit the ligand mol2 file and re-run PropKa with ' + f'the -l option: {filename}' ) _LOGGER.error(err) raise OSError(err)