KeyError: 'type' for show_component
2024-06-25 03:39:44 WARNING [localdb][show_component] Not able to find None QC menu [GET /component] component.py:158
ERROR [localdb][show_component] component.py(): Exception in loading supported tests! Check JSON format. [GET component.py:190
/component]
[2024-06-25 03:39:44,515] ERROR in app: Exception on /component [GET]
Traceback (most recent call last):
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/home/data/viewer/pages/component.py", line 163, in show_component
if this_component_doc["type"] == "module_pcb":
KeyError: 'type'
ERROR [localdb][internal_server_error] Traceback (most recent call last): app.py:175
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/venv/lib/python3.8/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/home/data/viewer/pages/component.py", line 163, in show_component
if this_component_doc["type"] == "module_pcb":
KeyError: 'type'
[GET /component]