Skip to content

Commit

Permalink
Add line breaks to error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevnrm committed Dec 1, 2020
1 parent de02059 commit e081bd5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions propka/ligand_pka_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,9 @@ def get_marvin_pkas_for_molecule(self, atoms, filename='__tmp_ligand.mol2',
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)
Expand Down

0 comments on commit e081bd5

Please sign in to comment.