Skip to content

Commit dce9bf6

Browse files
committed
remove unneeded exception
Signed-off-by: Yee Hing Tong <[email protected]>
1 parent b952f8d commit dce9bf6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: flytekit/core/promise.py

-8
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ async def binding_data_from_python_std(
897897
return _literals_models.BindingData(scalar=lit.scalar)
898898

899899

900-
# This function cannot be called from an async call stack
901900
def binding_from_python_std(
902901
ctx: _flyte_context.FlyteContext,
903902
var_name: str,
@@ -906,13 +905,6 @@ def binding_from_python_std(
906905
t_value_type: type,
907906
) -> Tuple[_literals_models.Binding, List[Node]]:
908907
nodes: List[Node] = []
909-
try:
910-
asyncio.get_running_loop()
911-
raise AssertionError("binding_from_python_std cannot be run from within an async call stack")
912-
except RuntimeError as e:
913-
if "no running event loop" not in str(e):
914-
logger.error(f"Unknown RuntimeError {str(e)}")
915-
raise
916908
binding_data = run_sync(
917909
binding_data_from_python_std,
918910
ctx,

0 commit comments

Comments
 (0)