Traceback (most recent call last):
File "/home/ubuntu/kwikee/projects/category_search/services/db_service.py", line 751, in migrate_clearbitcahe
log.info('Migrated ['+str(cbcache['site'])+']['+str(cbcache['category'])+'] from SQLite to Postgres')
KeyError: 'site'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/ubuntu/kwikee/projects/category_search/rest_api/category_controller.py", line 839, in migrate_clearbitcache_api
counter = dbs.migrate_clearbitcahe()
File "/home/ubuntu/kwikee/projects/category_search/services/db_service.py", line 758, in migrate_clearbitcahe
log.info('Error occurred (non-dupliacte) while adding brand ['+str(cbcache['site'])+'] ')
KeyError: 'site'
2019-08-15 18:53:53 _internal _log INFO 127.0.0.1 - - [15/Aug/2019 18:53:53] "GET /migrate/clearbitcache/from/sqlite/to/pg HTTP/1.0" 500 -