Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[2017-07-06 17:21:06,475] {/usr/local/lib/python2.7/dist-packages/flask/app.py:1560} ERROR - Exception on /shelf/1 [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/opt/calibre-web/cps/web.py", line 1986, in show_shelf
shelf=shelf)
File "/opt/calibre-web/cps/web.py", line 559, in render_title_template
return render_template(instance=config.config_calibre_web_title, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 134, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 116, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/calibre-web/cps/templates/shelf.html", line 1, in top-level template code
{% extends "layout.html" %}
File "/opt/calibre-web/cps/templates/layout.html", line 168, in top-level template code
{% block body %}{% endblock %}
File "/opt/calibre-web/cps/templates/shelf.html", line 25, in block "body"
<p class="author"><a href="{{url_for('author', book_id=entry.authors[0].id) }}">{{entry.authors[0].name}}</a></p>
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
UndefinedError: 'None' has no attribute 'authors'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.