Traceback (most recent call last):
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 3197, in execute_sql
cursor.execute(sql, params or ())
sqlite3.IntegrityError: NOT NULL constraint failed: dbbardata.turnover
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\vnpy\vnpy2.14\vnpy\app\data_manager\ui\widget.py", line 586, in download
count = self.engine.download_bar_data(symbol, exchange, interval, start)
File "C:\vnpy\vnpy2.14\vnpy\app\data_manager\engine.py", line 218, in download_bar_data
database_manager.save_bar_data(data)
File "C:\vnpy\vnpy2.14\vnpy\trader\database\database_sql.py", line 386, in save_bar_data
self.class_bar.save_all(ds)
File "C:\vnpy\vnpy2.14\vnpy\trader\database\database_sql.py", line 156, in save_all
c).on_conflict_replace().execute()
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 1927, in inner
return method(self, database, args, **kwargs)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 1998, in execute
return self._execute(database)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 2798, in _execute
return super(Insert, self)._execute(database)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 2511, in _execute
cursor = database.execute(self)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 3210, in execute
return self.execute_sql(sql, params, commit=commit)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 3204, in execute_sql
self.commit()
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 2970, in exit
reraise(new_type, new_type(exc_value, exc_args), traceback)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 191, in reraise
raise value.with_traceback(tb)
File "C:\Users\hxjsj.DESKTOP-EDEL962\AppData\Roaming\Python\Python37\site-packages\peewee.py", line 3197, in execute_sql
cursor.execute(sql, params or ())
peewee.IntegrityError: NOT NULL constraint failed: dbbardata.turnover