From 5b883d60f1d1e931c8f4aff1342eb2399f90dd27 Mon Sep 17 00:00:00 2001 From: luponzo86 Date: Wed, 29 Apr 2020 22:50:14 -0700 Subject: [PATCH] - --- rhapsody/features/Uniprot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rhapsody/features/Uniprot.py b/rhapsody/features/Uniprot.py index d411f23..0c1594e 100644 --- a/rhapsody/features/Uniprot.py +++ b/rhapsody/features/Uniprot.py @@ -176,7 +176,9 @@ def alignCustomPDB(self, PDB, chain='all', title=None, recover=False): try: pdb = pd.parsePDB(PDB, subset='calpha') except Exception as e: - msg = (f'Invalid PDB ID or PDB file: {e}') + msg = ( + 'Unable to import PDB: PDB ID might be invalid or ', + f'PDB file might be corrupted. Error message: {e}') raise LOGGER.error(msg) if title is None: title = os.path.basename(PDB.strip())