Skip to content

Commit f2db4c1

Browse files
author
y-p
committed
BUG: nested exceptions clobber the exception context, must reraise with named arg
1 parent 4cc0970 commit f2db4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,7 +3919,7 @@ def _apply_standard(self, func, axis, ignore_failures=False):
39193919
except (NameError, UnboundLocalError): # pragma: no cover
39203920
# no k defined yet
39213921
pass
3922-
raise
3922+
raise e
39233923

39243924
if len(results) > 0 and _is_sequence(results[0]):
39253925
if not isinstance(results[0], Series):

0 commit comments

Comments
 (0)