Traceback (most recent call last):


 "[env]/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "[my_project]/common/middleware.py", line 105, in middleware

response = get_response(request)


 "[env]/lib/python3.6/site-packages/django/core/handlers/exception.py", line 43, in inner

response = response_for_exception(request, exc)


 "[env]/lib/python3.6/site-packages/django/core/handlers/exception.py", line 93, in response_for_exception

response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())


 "[env]/lib/python3.6/site-packages/django/core/handlers/exception.py", line 139, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)


 "[env]/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 28, in null_technical_500_response

if isinstance(tb.tb_next.tb_frame.f_locals['self'], WSGIHandler):
KeyError: 'self'

Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/PIL/JpegImagePlugin.py", line 620, in _save

rawmode = RAWMODE[im.mode]
KeyError: 'RGBA'
