From 22a75567adddae81f136717e894cf88b69ebc910 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Mon, 7 Mar 2022 03:48:28 -0800 Subject: [PATCH] pass args to wrapped function --- my/core/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/core/source.py b/my/core/source.py index 31cd343..25ffa44 100644 --- a/my/core/source.py +++ b/my/core/source.py @@ -42,7 +42,7 @@ def import_source( @wraps(factory_func) def wrapper(*args, **kwargs) -> Iterator[T]: try: - res = factory_func(**kwargs) + res = factory_func(*args, **kwargs) yield from res except ImportError as err: from . import core_config as CC