comparison add_scaffold.py @ 4:fa0822e74ed3 draft

Uploaded
author greg
date Tue, 22 May 2018 10:05:18 -0400
parents 04ad7b5d22dd
children f2e91be20b43
comparison
equal deleted inserted replaced
3:04ad7b5d22dd 4:fa0822e74ed3
58 def update(self, sql, args): 58 def update(self, sql, args):
59 try: 59 try:
60 cur = self.conn.cursor() 60 cur = self.conn.cursor()
61 cur.execute(sql, args) 61 cur.execute(sql, args)
62 except Exception as e: 62 except Exception as e:
63 self.fh.write("Caught exception executing SQL:\n%s\n" % sql.format(args)) 63 msg = "Caught exception executing SQL:\n%s\nException:\n%s\n" % (sql.format(args), e)
64 self.stop_err('Caught exception executing SQL:\n%s\nException:\n%s\n' % (sql.format(args), e)) 64 self.stop_err(msg)
65 return cur 65 return cur
66 66
67 def check_scaffold(self): 67 def check_scaffold(self):
68 """ 68 """
69 Make sure the scaffold has not already been added. 69 Make sure the scaffold has not already been added.