From 3df7789117db79303b417223181ed4f4b8ba99a3 Mon Sep 17 00:00:00 2001 From: Tom Donoghue Date: Thu, 31 Mar 2022 22:27:20 -0400 Subject: [PATCH] fix return in check_dependency --- fooof/core/modutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fooof/core/modutils.py b/fooof/core/modutils.py index c342a52c9..a96f05012 100644 --- a/fooof/core/modutils.py +++ b/fooof/core/modutils.py @@ -177,6 +177,6 @@ def wrapped_func(*args, **kwargs): if not dep: raise ImportError("Optional FOOOF dependency " + name + \ " is required for this functionality.") - func(*args, **kwargs) + return func(*args, **kwargs) return wrapped_func return wrap