Skip to content

Commit

Permalink
fix add missing residues error
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonyapour committed Dec 27, 2023
1 parent 6bf10e1 commit 26a50d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdbfixer/pdbfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,10 @@ def main():
if options.residues:
if options.verbose: print('Finding missing residues...')
fixer.findMissingResidues()
for residueNames in fixer.missingResidues.values():
for residueName in residueNames:
if residueName not in fixer.templates:
raise(KeyError("Cannot find residue %s in template library!" % residueName))
else:
fixer.missingResidues = {}
if options.nonstandard:
Expand Down

0 comments on commit 26a50d1

Please sign in to comment.