Skip to content

Commit 2f43ac4

Browse files
yarikopticjreback
authored andcommitted
BF: (re)raise the exception always unless returning (#14756)
otherwise leads atm to masking of this error while testing on i386 and then failling since UnboundLocalError: local variable unser referenced before assignment More detail: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=i386&ver=0.19.1-1&stamp=1479504883
1 parent 06f26b5 commit 2f43ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/tests/json/test_pandas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _check_orient(df, orient, dtype=None, numpy=False,
167167
if raise_ok is not None:
168168
if isinstance(detail, raise_ok):
169169
return
170-
raise
170+
raise
171171

172172
if sort is not None and sort in unser.columns:
173173
unser = unser.sort_values(sort)

0 commit comments

Comments
 (0)