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

algebra/expanding string integer out of range error #403

Open
lukew3 opened this issue Dec 22, 2022 · 1 comment · May be fixed by #435
Open

algebra/expanding string integer out of range error #403

lukew3 opened this issue Dec 22, 2022 · 1 comment · May be fixed by #435
Labels
bug Something isn't working

Comments

@lukew3
Copy link
Owner

lukew3 commented Dec 22, 2022

Bug Description

When generating a problem for algebra/expanding, this error may come up:

Traceback (most recent call last):
  File "adoptGenerator.py", line 40, in <module>
    main()  # makes readme
  File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 134, in main
    write_subject_table(subject, wList)
  File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 110, in write_subject_table
    write_list.append(gen_to_row_string(item))
  File "/home/luke/src/mathgenerator/scripts/makeReadme.py", line 58, in gen_to_row_string
    prob, solu = myGen()
  File "/home/luke/src/mathgenerator/mathgenerator/generator.py", line 26, in __call__
    return self.func(*args, **kwargs)
  File "/home/luke/src/mathgenerator/mathgenerator/funcs/algebra/expanding.py", line 37, in gen_func
    elif p3[0] == "+":
IndexError: string index out of range
@lukew3 lukew3 added the bug Something isn't working label Dec 22, 2022
@ialoko ialoko linked a pull request Oct 14, 2023 that will close this issue
@ialoko
Copy link

ialoko commented Oct 14, 2023

Hello,
I just fixed this issue. Would love if I could get this approved for Hacktoberfest 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants