You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a content type of JSON, the body is a python dict, which means accessing attributes of the body incorrectly may result in a KeyError. It would be better if the body was either a modified dict, that instead of throwing KeyError would just return None, or else a custom body object where attributes could be accessed as object attributes; ie req.body.value instead of req.body['value'].
The text was updated successfully, but these errors were encountered:
Using a content type of JSON, the body is a python
dict
, which means accessing attributes of the body incorrectly may result in aKeyError
. It would be better if the body was either a modifieddict
, that instead of throwingKeyError
would just returnNone
, or else a custom body object where attributes could be accessed as object attributes; iereq.body.value
instead ofreq.body['value']
.The text was updated successfully, but these errors were encountered: