BUG: Fix TypeError caused by GH13374
- [x] closes #13374
- [x] `0 failed, 9873 passed, 1955 skipped, 11 xfailed, 4 warnings in 1475.44 seconds`
   > added ``test_none_delimiter`` in ``pandas/tests/io/parser/python_parser_only.py``
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
   > Bug in :func:`read_csv` where automatic delimiter detection caused a ``TypeError`` to be thrown when a bad line was encountered rather than the correct error message (:issue:`13374`)

@gfyoung 
Hello @matthax! Thanks for updating the PR.





Cheers ! There are no PEP8 issues in this Pull Request. :beers: 

##### Comment last updated on September 09, 2017 at 21:49 Hours UTC # [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=h1) Report
> Merging [#17465](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/ee6185e2fb9461632949f3ba52a28b37a1f7296e?src=pr&el=desc) will **decrease** coverage by `0.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           master   #17465      +/-   ##
==========================================
- Coverage   91.16%   91.14%   -0.02%     
==========================================
  Files         163      163              
  Lines       49590    49590              
==========================================
- Hits        45209    45200       -9     
- Misses       4381     4390       +9
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.93% <100%> (ø)` | :arrow_up: |
| #single | `40.25% <0%> (-0.07%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/parsers.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2lvL3BhcnNlcnMucHk=) | `95.46% <100%> (ø)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `25% <0%> (-58.34%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.72% <0%> (-0.1%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/17465?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/17465?src=pr&el=footer). Last update [ee6185e...ced6fc6](https://codecov.io/gh/pandas-dev/pandas/pull/17465?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/17465?src=pr&el=h1) Report
> Merging [#17465](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/fdbc6b8f4b36f07da62fc901b19754f922ae3952?src=pr&el=desc) will **decrease** coverage by `0.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           master   #17465      +/-   ##
==========================================
- Coverage   91.15%   91.13%   -0.02%     
==========================================
  Files         163      163              
  Lines       49534    49534              
==========================================
- Hits        45153    45144       -9     
- Misses       4381     4390       +9
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.92% <100%> (ø)` | :arrow_up: |
| #single | `40.22% <0%> (-0.07%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/parsers.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2lvL3BhcnNlcnMucHk=) | `95.46% <100%> (ø)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `25% <0%> (-58.34%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.72% <0%> (-0.1%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/17465?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/17465?src=pr&el=footer). Last update [fdbc6b8...f151405](https://codecov.io/gh/pandas-dev/pandas/pull/17465?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 pls add your example: https://github.com/pandas-dev/pandas/issues/13374#issuecomment-327843576 as a test. @jreback added the test and made the requested changes in whatsnew @gfyoung pls have a look. lgtm. @gfyoung pls review and merge. Just and FYI the flake check doesn't seem to be working on windows. I tried altering the commands as suggested but no dice. It doesn't error but it doesn't show me any issues. I swapped to using pylint and that seems to work ok, but perhaps that's something that needs to be looked into. 

*edit* running it through the git-bash shows nothing either 
![image](https://user-images.githubusercontent.com/12008400/30244211-c1e4dec4-9587-11e7-90e0-d9db1e9d27af.png)
 > Just and FYI the flake check doesn't seem to be working on windows.

Hmmm...we've been having this issue off-and-on with Windows.  Not sure why it wouldn't have been caught on the diff. Thanks @matthax !