Skip to content

Commit

Permalink
more fixes to _parsePDB for cif
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 10, 2024
1 parent 3b0caa1 commit 9b9b97d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prody/proteins/pdbfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,15 @@ def _parsePDB(pdb, **kwargs):
if filename is None:
try:
LOGGER.warn("Trying to parse mmCIF file instead")
chain = kwargs.pop('chain', chain)
return parseMMCIF(pdb+chain, **kwargs)
except:
except OSError:
try:
LOGGER.warn("Trying to parse EMD file instead")
chain = kwargs.pop('chain', chain)
return parseEMD(pdb+chain, **kwargs)
except:
raise IOError('PDB file for {0} could not be downloaded.'
raise IOError('PDB file for {0} could not be parsed.'
.format(pdb))
pdb = filename
if title is None:
Expand Down

0 comments on commit 9b9b97d

Please sign in to comment.