pass args to wrapped function
This commit is contained in:
parent
07b0c0cbef
commit
3fd6c81511
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def import_source(
|
||||||
@wraps(factory_func)
|
@wraps(factory_func)
|
||||||
def wrapper(*args, **kwargs) -> Iterator[T]:
|
def wrapper(*args, **kwargs) -> Iterator[T]:
|
||||||
try:
|
try:
|
||||||
res = factory_func(**kwargs)
|
res = factory_func(*args, **kwargs)
|
||||||
yield from res
|
yield from res
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
from . import core_config as CC
|
from . import core_config as CC
|
||||||
|
|
Loading…
Add table
Reference in a new issue