diff --git a/journalmarks/journalmarks.py b/journalmarks/journalmarks.py index 70d033c..86a99a4 100644 --- a/journalmarks/journalmarks.py +++ b/journalmarks/journalmarks.py @@ -228,7 +228,7 @@ def get_journalmark(tag): (Journalmark.tag == tag) & (Journalmark.user == flask_g.user) ).get() except DoesNotExist: - return ('tag not found', 404, None) + return render_template('not_found.html') return render_template('get_journalmark.html', j=j) diff --git a/journalmarks/templates/not_found.html b/journalmarks/templates/not_found.html new file mode 100644 index 0000000..0cdb2d6 --- /dev/null +++ b/journalmarks/templates/not_found.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block script %} + +{% endblock %} +{% block body %} +

Journalmark not found

+ +

There is no Journalmark with the provided tag code.

+ +

Back to welcome page

+{% endblock %}