Closed MattiSG closed 9 years ago
An assumption is made in wsgihelpers.py that attributes 'error' in data contain a 'code' attribute:
wsgihelpers.py
'error'
data
'code'
code = code or error['code']
This makes the server crash with a 500 if it is not the case, with the following error:
TypeError: string indices must be integers, not str
The original error thus never reaches the end user.
It should at least be documented that error can not be a string. I can do it, but I don't know which Python type you are expecting here.
error
An assumption is made in
wsgihelpers.py
that attributes'error'
indata
contain a'code'
attribute:This makes the server crash with a 500 if it is not the case, with the following error:
The original error thus never reaches the end user.
It should at least be documented that
error
can not be a string. I can do it, but I don't know which Python type you are expecting here.