Skip to content

Commit b2a57cd

Browse files
authored
Merge pull request #232 from fooof-tools/optreq
[BUG] - Fix return in check_dependency
2 parents 14d6196 + 3df7789 commit b2a57cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fooof/core/modutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ def wrapped_func(*args, **kwargs):
177177
if not dep:
178178
raise ImportError("Optional FOOOF dependency " + name + \
179179
" is required for this functionality.")
180-
func(*args, **kwargs)
180+
return func(*args, **kwargs)
181181
return wrapped_func
182182
return wrap

0 commit comments

Comments
 (0)