lf_qa.py : if the database column layout changes print error to stderr

with Error

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-08-21 18:56:10 -06:00
parent 09a77a968f
commit 2a233205c3

View File

@@ -254,7 +254,8 @@ class csv_sqlite_dash():
try:
self.df.to_sql(self.table,self.conn,if_exists='append')
except:
print("attempt to append to database with different column layout, casused exception, input new name --database <new name>")
print("attempt to append to database with different column layout, caused an exception, input new name --database <new name>")
print("Error attempt to append to database with different column layout, caused an exception, input new name --database <new name>", file=sys.stderr)
exit(1)
self.conn.close()