mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 01:21:07 +00:00
Fixes decorator eating function results
This commit is contained in:
parent
4c8b089d8b
commit
0bbef583a2
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ def require_federation(function):
|
||||||
"""Ensure that federation is allowed before proceeding with this view"""
|
"""Ensure that federation is allowed before proceeding with this view"""
|
||||||
|
|
||||||
@wraps(function)
|
@wraps(function)
|
||||||
def wrap(request, *args, **kwargs): # pylint: disable=unused-argument
|
def wrap(request, *args, **kwargs):
|
||||||
SiteSettings.raise_federation_disabled()
|
SiteSettings.raise_federation_disabled()
|
||||||
|
return function(request, *args, **kwargs)
|
||||||
|
|
||||||
return wrap
|
return wrap
|
||||||
|
|
Loading…
Reference in a new issue