From 0bbef583a23e148e99a629443cee17dd480d39dd Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Oct 2024 14:37:05 -0700 Subject: [PATCH] Fixes decorator eating function results --- bookwyrm/decorators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/decorators.py b/bookwyrm/decorators.py index 470746d63..b8285cfb8 100644 --- a/bookwyrm/decorators.py +++ b/bookwyrm/decorators.py @@ -7,7 +7,8 @@ def require_federation(function): """Ensure that federation is allowed before proceeding with this view""" @wraps(function) - def wrap(request, *args, **kwargs): # pylint: disable=unused-argument + def wrap(request, *args, **kwargs): SiteSettings.raise_federation_disabled() + return function(request, *args, **kwargs) return wrap