mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	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:
		@@ -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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user