Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
luponzo86 committed Apr 30, 2020
1 parent 7085d8d commit 5b883d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rhapsody/features/Uniprot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5b883d6

Please sign in to comment.