Page MenuHomePhabricator

Proxy renewals CSV download causes a TypeError
Closed, DeclinedPublic

Description

It looks like the CSV download for the 'renewal rate' metric isn't working:

Traceback: 

File "/venv/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/venv/lib/python3.8/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/venv/lib/python3.8/site-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/app/TWLight/graphs/views.py" in get
  216.         self._write_data(response)

File "/app/TWLight/graphs/views.py" in _write_data
  259.                         each_renewed_auth[1],

Exception Type: TypeError at /csv/proxy_authorizations_renewals/
Exception Value: 'NoneType' object is not subscriptable