SuffolkLITLab / docassemble-MAAffidavitDisclosingCareOrCustody

A Docassemble interview for the Massachusetts Affidavit Disclosing Care or Custody
https://www.courtformsonline.org/dv/#careandcustory
MIT License
0 stars 0 forks source link

Bug on Affidavit for Care or Custody #3

Closed maevemacglinchey closed 4 years ago

maevemacglinchey commented 4 years ago

I was running through the Affidavit of Care or Custody that's live on the site and ran into this error when I selected a court and then selected 'next':

Error
Retry

AttributeError: 'NoneType' object has no attribute 'name'
Log
Traceback (most recent call last):
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 6540, in assemble
    exec_with_trap(question, user_dict)
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 7813, in exec_with_trap
    exec(the_question.compute, the_dict)
  File "<code block>", line 15, in <module>
NameError: name 'fill_in_court_name' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/webapp/server.py", line 6979, in index
    interview.assemble(user_dict, interview_status, old_user_dict, force_question=special_question)
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 6820, in assemble
    raise the_error
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 6611, in assemble
    question_result = self.askfor(missingVariable, user_dict, old_user_dict, interview_status, seeking=interview_status.seeking, follow_mc=follow_mc, seeking_question=seeking_question)
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 7251, in askfor
    exec_with_trap(question, user_dict)
  File "/usr/share/docassemble/local3.6/lib/python3.6/site-packages/docassemble/base/parse.py", line 7813, in exec_with_trap
    exec(the_question.compute, the_dict)
  File "<code block>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'name'

Cc: @nonprofittechy

knod commented 4 years ago

Thanks for finding this! Which court did you select? Did you select it from the drop-down?

maevemacglinchey commented 4 years ago

I have recorded myself replicating this issue twice:

In both recordings, I tried to select a different court but got an error every time.

Cc: @nonprofittechy @CaroRob @knod @colarusso

nonprofittechy commented 4 years ago

Fixed in 0.8