changeset 4:fa0822e74ed3 draft

Uploaded
author greg
date Tue, 22 May 2018 10:05:18 -0400
parents 04ad7b5d22dd
children f2e91be20b43
files add_scaffold.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/add_scaffold.py	Tue May 22 10:01:20 2018 -0400
+++ b/add_scaffold.py	Tue May 22 10:05:18 2018 -0400
@@ -60,8 +60,8 @@
             cur = self.conn.cursor()
             cur.execute(sql, args)
         except Exception as e:
-            self.fh.write("Caught exception executing SQL:\n%s\n" % sql.format(args))
-            self.stop_err('Caught exception executing SQL:\n%s\nException:\n%s\n' % (sql.format(args), e))
+            msg = "Caught exception executing SQL:\n%s\nException:\n%s\n" % (sql.format(args), e)
+            self.stop_err(msg)
         return cur
 
     def check_scaffold(self):