Closed mbarton closed 4 months ago
django-1 | 2024-04-26T13:44:09.989543906Z ERROR [django.request] Internal Server Error: /kpi_download_file django-1 | 2024-04-26T13:44:09.989578130Z Traceback (most recent call last): django-1 | 2024-04-26T13:44:09.989585334Z File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner django-1 | 2024-04-26T13:44:09.989591896Z response = get_response(request) django-1 | 2024-04-26T13:44:09.989597968Z ^^^^^^^^^^^^^^^^^^^^^ django-1 | 2024-04-26T13:44:09.989603889Z File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response django-1 | 2024-04-26T13:44:09.989610090Z response = wrapped_callback(request, *callback_args, **callback_kwargs) django-1 | 2024-04-26T13:44:09.989624357Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ django-1 | 2024-04-26T13:44:09.989630479Z File "/app/epilepsy12/decorator.py", line 380, in wrapper django-1 | 2024-04-26T13:44:09.989636189Z return view(request, *args, **kwargs) django-1 | 2024-04-26T13:44:09.989642000Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ django-1 | 2024-04-26T13:44:09.989647631Z File "/usr/local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view django-1 | 2024-04-26T13:44:09.989653872Z return view_func(request, *args, **kwargs) django-1 | 2024-04-26T13:44:09.989659824Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ django-1 | 2024-04-26T13:44:09.989665715Z File "/app/epilepsy12/views/organisation_views.py", line 450, in kpi_download_file django-1 | 2024-04-26T13:44:09.989671856Z country_df, trust_hb_df, icb_df, region_df, network_df, national_df, reference_df = download_kpi_summary_as_csv(cohort=6) django-1 | 2024-04-26T13:44:09.989688678Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ django-1 | 2024-04-26T13:44:09.989695370Z File "/app/epilepsy12/kpi.py", line 89, in download_kpi_summary_as_csv django-1 | 2024-04-26T13:44:09.989701141Z wales_kpi_aggregation[f"{kpi}_passed"] django-1 | 2024-04-26T13:44:09.989707092Z TypeError: unsupported operand type(s) for /: 'NoneType' and 'NoneType'
Looks like the same error as #899 but at the top level
Looks like the same error as #899 but at the top level