Traceback (most recent call last):


 "/<<PKGBUILDDIR>>/tests/unit/test_state.py", line 559, in setUp

with patch('salt.state.State._gather_pillar'):
AttributeError: __enter__

Traceback (most recent call last):


 "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/usr/local/lib/python2.7/site-packages/flask_login/utils.py", line 261, in decorated_view

return func(*args, **kwargs)


 "/usr/local/lib/python2.7/site-packages/flask/views.py", line 84, in view

return self.dispatch_request(*args, **kwargs)


 "/usr/local/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request

return meth(*args, **kwargs)


 "/usr/local/lib/python2.7/site-packages/flaskbb/forum/views.py", line 792, in post

topic.hide(user=current_user)


 "/usr/local/lib/python2.7/site-packages/flaskbb/forum/models.py", line 700, in hide

self._handle_first_post()


 "/usr/local/lib/python2.7/site-packages/flaskbb/forum/models.py", line 791, in _handle_first_post

self.first_post.hidden = self.hidden
AttributeError: 'NoneType' object has no attribute 'hidden'
