From a45fcb395ba41493fc02fbafe36aa945b4967877 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 30 Nov 2021 17:35:55 +1100 Subject: [PATCH] Remove problematic call to decode(). --- www/conservancy/local_context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/local_context_processors.py b/www/conservancy/local_context_processors.py index 4759b1e5..654c60ca 100644 --- a/www/conservancy/local_context_processors.py +++ b/www/conservancy/local_context_processors.py @@ -22,7 +22,7 @@ def sitefundraiser(request): if conservancy.settings.FORCE_CANONICAL_HOSTNAME: _HOST_URL_VAR = {'host_url': 'https://' + conservancy.settings.FORCE_CANONICAL_HOSTNAME} def host_url(request): - return _HOST_URL_VAR.decode('utf-8') + return _HOST_URL_VAR else: def host_url(request): return {'host_url': request.build_absolute_uri('/').rstrip('/').decode('utf-8')}