read_sas catches own error #24548
State: closed

- [ ] closes #24548 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Labels:
name: Bug
name: IO SAS
description: SAS: read_sas

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=h1) Report
> Merging [#24554](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/27d18c77f1e137550718a5dbf51165e74acaee22?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24554/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #24554      +/-   ##
==========================================
- Coverage   92.33%   92.33%   -0.01%     
==========================================
  Files         166      166              
  Lines       52465    52465              
==========================================
- Hits        48443    48442       -1     
- Misses       4022     4023       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.75% <0%> (ø)` | :arrow_up: |
| #single | `43% <0%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/sas/sasreader.py](https://codecov.io/gh/pandas-dev/pandas/pull/24554/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXNyZWFkZXIucHk=) | `86.2% <0%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/24554/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `87.59% <0%> (-0.1%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=footer). Last update [27d18c7...15bf0f9](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@c217656`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24554/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=tree)

```diff
@@            Coverage Diff            @@
##             master   #24554   +/-   ##
=========================================
  Coverage          ?   92.32%           
=========================================
  Files             ?      166           
  Lines             ?    52553           
  Branches          ?        0           
=========================================
  Hits              ?    48519           
  Misses            ?     4034           
  Partials          ?        0
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.75% <100%> (?)` | |
| #single | `43.06% <0%> (?)` | |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/sas/sasreader.py](https://codecov.io/gh/pandas-dev/pandas/pull/24554/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXNyZWFkZXIucHk=) | `96.15% <100%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=footer). Last update [c217656...dcc071d](https://codecov.io/gh/pandas-dev/pandas/pull/24554?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

i pushed a revision
@jreback Build appears to have mostly passed apart from Windows which is reporting:

"Could not find conda environment: pandas-dev" - not sure this is related to what I've changed.

Relates to #24564 
restarted the azure build.
thanks!