corrected reason and removed from email

This commit is contained in:
Navan Chauhan 2020-09-27 01:17:15 +05:30
parent f35398d32d
commit bb02df97a6
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ with tempfile.TemporaryDirectory() as directory:
sys.exit(0) sys.exit(0)
res = get3DModel(receptor_name,ligand_name.replace(".pdbqt","_out.pdbqt")) res = get3DModel(receptor_name,ligand_name.replace(".pdbqt","_out.pdbqt"))
if res == None: if res == None:
reason = "Could not generate the report, this could be because of a failed docking job. Please check the ZIP archive for the configuration and converted PDBQTs and try submitting manually. " reason = "Could not generate the 3D models."
email(toaddr,jobID,date,description,zipArchive=zi,reason=reason) email(toaddr,jobID,date,description,zipArchive=zi)
mycursor.execute('UPDATE curieweb set done=1 where id="%s"' % (jobID)) mycursor.execute('UPDATE curieweb set done=1 where id="%s"' % (jobID))
mycon.commit() mycon.commit()
sys.exit(0) sys.exit(0)