TypeError: 'NoneType' object is not subscriptable
Traceback:
File "/Users/kahhowlee/code/chergpt-starter-kit/main.py", line 388, in main
create_vectorstore()
File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 366, in create_vectorstore
save_to_vectorstores(db, vs_name, subject, topic, st.session_state.user["username"], share_resource) # Passing the share_resource to the function
File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 283, in save_to_vectorstores
subject_id = cursor.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable Traceback: File "/Users/kahhowlee/code/chergpt-starter-kit/main.py", line 388, in main create_vectorstore() File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 366, in create_vectorstore save_to_vectorstores(db, vs_name, subject, topic, st.session_state.user["username"], share_resource) # Passing the share_resource to the function File "/Users/kahhowlee/code/chergpt-starter-kit/kb_module.py", line 283, in save_to_vectorstores subject_id = cursor.fetchone()[0]