From 1c778dbd38e16094396242e54411fa26295d1421 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 15 Jul 2018 21:38:15 +0200 Subject: [PATCH] Fix the template filter --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d289858..834150f 100644 --- a/app.py +++ b/app.py @@ -272,7 +272,7 @@ def get_url(u): elif isinstance(u, str): return u else: - raise ValueError(f"unexpected URL field type: {type(u)}: {u!r}") + return u @app.template_filter()