Skip to content

discrepancy_check failure #478

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

Open
jasoncartwright opened this issue Sep 9, 2024 · 1 comment
Open

discrepancy_check failure #478

jasoncartwright opened this issue Sep 9, 2024 · 1 comment

Comments

@jasoncartwright
Copy link
Member

jasoncartwright commented Sep 9, 2024

/offline/discrepancy_check/

Traceback (most recent call last):
  File "/layers/google.python.pip/pip/lib/python3.12/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/layers/google.python.pip/pip/lib/python3.12/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/gfoffline/views.py", line 82, in discrepancy_check
    foodbank_page = htmlbodytext(foodbank_page.text)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/givefood/func.py", line 1190, in htmlbodytext
    return soup.body.get_text()
           ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_text'
@jasoncartwright
Copy link
Member Author

Unstuck by changing broken URL, but code should deal with this error anyway

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

1 participant