Skip to content

Commit 825900c

Browse files
Remove re-raise ValueError
1 parent 5ad3970 commit 825900c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dpnp/dpnp_iface_logic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,7 @@ def _isclose_scalar_tol(a, b, rtol, atol, equal_nan):
127127
if not isinstance(equal_nan, bool):
128128
equal_nan = bool(equal_nan)
129129

130-
# pylint: disable=W0707
131-
try:
132-
a, b = dpnp.broadcast_arrays(a, b)
133-
except ValueError:
134-
raise ValueError(
135-
"operands could not be broadcast together with shapes "
136-
f"{a.shape} and {b.shape}"
137-
)
130+
a, b = dpnp.broadcast_arrays(a, b)
138131

139132
output = dpnp.empty(
140133
a.shape, dtype=dpnp.bool, sycl_queue=exec_q, usm_type=usm_type

0 commit comments

Comments
 (0)