# HG changeset patch # User greg # Date 1526998549 14400 # Node ID 82822d1e5119bc680f6790429c5051806e3e8503 # Parent 7973201f23e753a7102d8fb8bd152ee46aa8c21d Uploaded diff -r 7973201f23e7 -r 82822d1e5119 add_scaffold.py --- 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): """