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

ValueError: substring not found #9

Open
investlab opened this issue Nov 16, 2022 · 1 comment
Open

ValueError: substring not found #9

investlab opened this issue Nov 16, 2022 · 1 comment

Comments

@investlab
Copy link

I get an error telling: ValueError: substring not found
how can i fix this error?
Screenshot_2

@MonsterRoot
Copy link

MonsterRoot commented Dec 28, 2022

replace string at line 96
text = text[text.index(']'):].replace("}","").replace("]","")
to this construction
text = text[text.index(']'):].replace("}","").replace("]","") if text.find(']') != -1 else text

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

No branches or pull requests

2 participants