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

Crash clicking the organisational audit CTA as an RCPCH audit team member #1174

Open
mbarton opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@mbarton
Copy link
Member

mbarton commented Jan 17, 2025

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/epilepsy12/decorator.py", line 407, in wrapper
    return view(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/epilepsy12/views/organisational_audit_views.py", line 289, in organisational_audit
    if organisation.local_health_board:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /organisational_audit
Exception Value: 'NoneType' object has no attribute 'local_health_board'
Raised during: epilepsy12.decorator.wrapper

The affected audit team member didn't have an organisation employer. For all the other audit team members we have assigned them to Kings to avoid this (no permissions implications as audit team members can see all the data across all the units).

I have also assigned the affected member to Kings but raising this issue to track the crash nonetheless. For this particular URL there is likely not much we can do anyway since we don't have an organisational audit "overview" page, so what page would we expect to redirect audit team members to 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