Skip to content

Commit a351a69

Browse files
committed
Centralize Status exception throw.
1 parent 5324da2 commit a351a69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch_xla/csrc/init_python_bindings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ static void ConsumeAndMaybeThrow(absl::Status status) {
168168

169169
template <class T>
170170
static T ConsumeAndMaybeThrow(absl::StatusOr<T> status) {
171+
ConsumeAndMaybeThrow(status.status());
171172
return std::move(status.value());
172173
}
173174

0 commit comments

Comments
 (0)