Internal server error

Error: 'NoneType' object has no attribute 'get'