Skip to content

Commit 97f86dc

Browse files
committed
fix: simplify error handling in PySessionContext by unwrapping wait_for_future result
1 parent f10652c commit 97f86dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ impl PySessionContext {
870870

871871
ctx.register_json(&name_owned, &path_owned, options).await
872872
};
873-
let rresult = wait_for_future(py, result_future)?;
873+
wait_for_future(py, result_future)??;
874874

875875
Ok(())
876876
}

0 commit comments

Comments
 (0)