AttributeError
AttributeError: 'NoneType' object has no attribute 'id'
Traceback (most recent call last)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/wsgiapp.py",
line 122,
in __call__
response = self.wrapped_dispatch(controller, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/appwrappers/errorpage.py",
line 57,
in __call__
resp = self.next_handler(controller, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/appwrappers/transaction_manager.py",
line 107,
in __call__
reraise(*exc_info)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/appwrappers/transaction_manager.py",
line 83,
in __call__
response = self.next_handler(controller, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/appwrappers/identity.py",
line 47,
in __call__
return self.next_handler(controller, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/appwrappers/i18n.py",
line 71,
in __call__
return self.next_handler(controller, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/wsgiapp.py",
line 295,
in dispatch
return controller(environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/panceramics_git_production/panceramics/panceramics/lib/base.py",
line 27,
in __call__
return TGController.__call__(self, environ, context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 128,
in __call__
response = self._perform_call(context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 109,
in _perform_call
r = self._call(func, params, remainder=remainder, context=context)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/controllers/decoratedcontroller.py",
line 120,
in _call
output = controller_caller(context_config, bound_controller_callable, remainder, params)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/decorators.py",
line 44,
in _decorated_controller_caller
return application_controller_caller(tg_config, controller, remainder, params)
File "/home/ubuntu/panceramics/panceramicsenv/lib/python2.7/site-packages/tg/configuration/app_config.py",
line 127,
in call_controller
return controller(*remainder, **params)
File "/home/ubuntu/panceramics/panceramicsenv/panceramics_git_production/panceramics/panceramics/controllers/root.py",
line 417,
in products
categories.append(category.id)
AttributeError: 'NoneType' object has no attribute 'id'
The debugger caught an exception in your WSGI application. You can now
look at the traceback which led to the error.
If you enable JavaScript you can also use additional features such as code
execution (if the evalex feature is enabled), automatic pasting of the
exceptions and much more.