Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent crashes when a line contains a splitter. #152

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

hit-ybai
Copy link

@hit-ybai hit-ybai commented Oct 8, 2023

Traceback (most recent call last):
File "example/common/case.py", line 154, in
cli()
File "~/.local/lib/python2.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "~/.local/lib/python2.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "~/.local/lib/python2.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "~/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "~/.local/lib/python2.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "example/common/case.py", line 94, in run
full_dataset.parse()
File "~/havenask/hape/hape_libs/utils/havenask_dataset.py", line 69, in parse
key, value = line.split(self.kv_sep)
ValueError: too many values to unpack

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2023

CLA assistant check
All committers have signed the CLA.

@hit-ybai hit-ybai marked this pull request as draft December 5, 2023 08:38
@hit-ybai hit-ybai closed this Dec 5, 2023
@hit-ybai hit-ybai reopened this Dec 5, 2023
@hit-ybai hit-ybai closed this Dec 5, 2023
@hit-ybai hit-ybai reopened this Dec 5, 2023
@hit-ybai hit-ybai marked this pull request as ready for review July 15, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants