Skip to content
Snippets Groups Projects
Commit b3a9897d authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: cleanup temp file also in case DSSP failed.

parent d121f260
Branches
Tags
No related merge requests found
...@@ -110,6 +110,7 @@ def AssignDSSP(ent, pdb_path="", extract_burial_status=False, tmp_dir=None, ...@@ -110,6 +110,7 @@ def AssignDSSP(ent, pdb_path="", extract_burial_status=False, tmp_dir=None,
# are handled in the parser LoadDSSP) # are handled in the parser LoadDSSP)
temp_dssp_path=_ExecuteDSSP(pdb_path, dssp_bin) temp_dssp_path=_ExecuteDSSP(pdb_path, dssp_bin)
if not os.path.exists(temp_dssp_path): if not os.path.exists(temp_dssp_path):
_Cleanup(pdb_path, temp_dssp_path, entity_saved)
raise RuntimeError('DSSP output file does not exist.') raise RuntimeError('DSSP output file does not exist.')
# assign DSSP to entity # assign DSSP to entity
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment