drf-yasg: AttributeError: 'dict' object has no attribute 'info'

Created by: lwm

When we hit http://api.carbondoomsday.com/?format=openapi/co2/ (which is an invalid URL anyway) we get a HTTP 500 which should not be happening. We should simply be getting a 404. Instead this weird error is being raised. Will need to investigate. Not critical.

screenshot from 2018-02-08 19-51-48