Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/framex/plugin/on.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def wrapper(*args: Any, **kwargs: Any) -> Any:

proxy_func_set = set(chain.from_iterable(proxy_settings.proxy_functions.values()))
if full_func_name not in proxy_func_set:
return await safe_callable(**kwargs)
return await func(**kwargs)

api_call = PluginApi(
deployment_name=PROXY_PLUGIN_NAME,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ async def wrapper(*_: Any, **__: Any) -> None:


@on_proxy()
@supply_exception
async def local_exchange_key_value(a_str: str, b_int: int, c_model: ExchangeModel) -> Any:
return {"a_str": a_str, "b_int": b_int, "c_model": c_model}


@on_proxy()
@supply_exception
async def remote_exchange_key_value(a_str: str, b_int: int, c_model: ExchangeModel) -> Any:
raise RuntimeError("This function should be called remotely")

Expand Down
Loading