Mercurial > repos > greg > plant_tribes_add_scaffold
changeset 7:82822d1e5119 draft
Uploaded
author | greg |
---|---|
date | Tue, 22 May 2018 10:15:49 -0400 |
parents | 7973201f23e7 |
children | 9b2ede3e7100 |
files | add_scaffold.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/add_scaffold.py Tue May 22 10:10:15 2018 -0400 +++ b/add_scaffold.py Tue May 22 10:15:49 2018 -0400 @@ -75,7 +75,7 @@ cur.execute(sql) try: cur.fetchone()[0] - self.stop_err("The scaffold %s has already been added to the database." % scaffold_id) + # The scaffold has been added to the database. return False except: # The scaffold has not yet been added. @@ -88,6 +88,8 @@ self.process_orthogroup_fasta_files() self.fh.flush() self.fh.close() + else: + self.stop_err("The scaffold %s has already been added to the database." % scaffold_id) def process_annot_dir(self): """