Skip to content

Instantly share code, notes, and snippets.

@clodo
Created June 8, 2018 17:18
Show Gist options
  • Save clodo/88ca0d28601317c857246f149dc79efb to your computer and use it in GitHub Desktop.
Save clodo/88ca0d28601317c857246f149dc79efb to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/src/api/controllers/user_controller.py", line 17, in get_users
if session.get('user')['role'] not in [Roles.admin.value, Roles.user_management.value]:
TypeError: 'NoneType' object has no attribute '__getitem__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment