pass args to wrapped function

This commit is contained in:
Sean Breckenridge 2022-03-07 03:48:28 -08:00
parent 0f08868d58
commit 22a75567ad

View file

@ -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