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