aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-09-27 01:14:19 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-09-27 01:14:19 +0530
commitf35398d32d4cbff242c4d16fa4e757d383a51dc5 (patch)
treec01fa14c2158eb7fed7415610e9a09ab14986503
parente68dc5edc3733bd67f127eed12b566e195338186 (diff)
corrected exception
-rw-r--r--app/dock-single.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/dock-single.py b/app/dock-single.py
index 024cd8f..54ade78 100644
--- a/app/dock-single.py
+++ b/app/dock-single.py
@@ -228,7 +228,7 @@ with tempfile.TemporaryDirectory() as directory:
make_archive(zi, 'zip', directory)
try:
copyfile("report.pdf",os.path.join(reportDirectory,(str(jobID)+".pdf")))
- except:
+ except FileNotFoundError:
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. "
email(toaddr,jobID,date,description,zipArchive=zi,reason=reason)
mycursor.execute('UPDATE curieweb set done=1 where id="%s"' % (jobID))