We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5e36a commit 3cc1dddCopy full SHA for 3cc1ddd
pandas/util/testing.py
@@ -1097,7 +1097,9 @@ def wrapper(*args, **kwargs):
1097
try:
1098
return t(*args, **kwargs)
1099
except Exception as e:
1100
- errno = getattr(e,'errno',None)
+ errno = getattr(e, 'errno', None)
1101
+ if not errno and hasattr(errno, "reason"):
1102
+ errno = getattr(e.reason, 'errno', None)
1103
1104
if not isinstance(e, error_classes):
1105
raise
0 commit comments