Question
AttributeError: 'NoneType' object has no attribute 'get' — with AttributeError
ca8dd237-171a-4048-9007-80fe9d9492d3
Flask app crashes with AttributeError: 'NoneType' object has no attribute 'get' when API requests have no JSON body or Incorrect Content-Type. The crash occurs in create_user and update_settings where code does data.get(...) on data derived from request.json.