candy-machine icon indicating copy to clipboard operation
candy-machine copied to clipboard

KeyError

Open khronimo opened this issue 8 months ago • 5 comments

"one-piece swimsuit" seems to trigger a KeyError.

On a side note, it would be nice to have WD auto tagging as optional as it doesn't suit every dataset.

[2024-06-12 15:16:28,877] ERROR in app: Exception on /project/test/get [POST] Traceback (most recent call last): File "I:\Tools\candy-machine\candy-machine-main\venv\lib\site-packages\flask\app.py", line 1473, in wsgi_app response = self.full_dispatch_request() File "I:\Tools\candy-machine\candy-machine-main\venv\lib\site-packages\flask\app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e) File "I:\Tools\candy-machine\candy-machine-main\venv\lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "I:\Tools\candy-machine\candy-machine-main\venv\lib\site-packages\flask\app.py", line 880, in full_dispatch_request rv = self.dispatch_request() File "I:\Tools\candy-machine\candy-machine-main\venv\lib\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 "I:\Tools\candy-machine\candy-machine-main\server\main.py", line 85, in get_project project = Project(project_name) File "I:\Tools\candy-machine\candy-machine-main\server\project.py", line 68, in init self._load() File "I:\Tools\candy-machine\candy-machine-main\server\project.py", line 132, in _load self.auto_tags = self._get_filtered_auto_tags(self.project_layout) File "I:\Tools\candy-machine\candy-machine-main\server\project.py", line 450, in _get_filtered_auto_tags tag_info.to_dict() for tag_info in self._analyze_auto_tags() File "I:\Tools\candy-machine\candy-machine-main\server\project.py", line 500, in _analyze_auto_tags del tags[tag] KeyError: 'one-piece swimsuit'

khronimo avatar Jun 12 '24 05:06 khronimo