When running Sphinx to generate documentation on an app that uses flask-login, I get the error
~/workspace/doc/source$ make html
...
File "/Users/prschmid/.virtualenvs/myproject/lib/python2.7/site-packages/werkzeug/local.py", line 310, in __repr__
obj = self._get_current_object()
File "/Users/prschmid/.virtualenvs/myproject/lib/python2.7/site-packages/werkzeug/local.py", line 295, in _get_current_object
return self.__local()
File "/Users/prschmid/.virtualenvs/myproject/lib/python2.7/site-packages/flask_login.py", line 403, in <lambda>
current_user = LocalProxy(lambda: _request_ctx_stack.top.user)
AttributeError: 'NoneType' object has no attribute 'user'
How to create docs for this project?
This problem solved in release: Flask-Social==1.6.1 Flask-Login==0.2.6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With