gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: Styling 404 fallback


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: Styling 404 fallback page.
Date: Mon, 07 Sep 2020 17:08:00 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new a2fe625  Styling 404 fallback page.
a2fe625 is described below

commit a2fe62582f8d79b34df8e2a6144c9f3f1f5b1179
Author: MS <ms@taler.net>
AuthorDate: Mon Sep 7 17:06:42 2020 +0200

    Styling 404 fallback page.
---
 talermerchantdemos/blog/blog.py           | 3 ++-
 talermerchantdemos/donations/donations.py | 3 ++-
 talermerchantdemos/survey/survey.py       | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index 81ef11f..e5068ee 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -275,4 +275,5 @@ def article(article_name, data=None):
 
 @app.errorhandler(404)
 def handler(e):
-    return fallback_404(e)
+    return flask.render_template(
+        "templates/error.html", message="Page not found")
diff --git a/talermerchantdemos/donations/donations.py 
b/talermerchantdemos/donations/donations.py
index 5542bc8..3f021f9 100644
--- a/talermerchantdemos/donations/donations.py
+++ b/talermerchantdemos/donations/donations.py
@@ -245,4 +245,5 @@ def fulfillment(receiver):
 
 @app.errorhandler(404)
 def handler(e):
-    return fallback_404(e)
+    return flask.render_template(
+        "templates/error.html", message="Page not found")
diff --git a/talermerchantdemos/survey/survey.py 
b/talermerchantdemos/survey/survey.py
index e58ad63..b6a5ceb 100644
--- a/talermerchantdemos/survey/survey.py
+++ b/talermerchantdemos/survey/survey.py
@@ -138,4 +138,5 @@ def index():
 
 @app.errorhandler(404)
 def handler(e):
-    return fallback_404(e)
+    return flask.render_template(
+        "templates/error.html", message="Page not found")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]