-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN/BUG: remove bare excepts #14554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
what exactly is a This evaluates correctly to an infinite recursion. |
This is the KeyError (there was a little bug in the code snippet).
|
and? |
That there is no key error. The exception should be "max recursion limit", On Tuesday, November 1, 2016, Jeff Reback [email protected] wrote:
" To be is to do " ( Socrates ) |
I am still not clear what exactly is the issue. you have a recursion issue. This pandas call returns a valid value. What do you think this should do? |
Part of the issue is in here: |
sure. bare excepts are not recommended |
IdnexError and KeyError now bubble up appropriately. closes pandas-dev#14554 Author: Chris Ham <[email protected]> Closes pandas-dev#14912 from clham/gh14554-b and squashes the following commits: 458c0cc [Chris Ham] CLN: Resubmit of GH14700. Fixes GH14554. Errors other than IndexingError and KeyError now bubble up appropriately. (cherry picked from commit 3ccb501)
IdnexError and KeyError now bubble up appropriately. closes pandas-dev#14554 Author: Chris Ham <[email protected]> Closes pandas-dev#14912 from clham/gh14554-b and squashes the following commits: 458c0cc [Chris Ham] CLN: Resubmit of GH14700. Fixes GH14554. Errors other than IndexingError and KeyError now bubble up appropriately.
Using KeyError may prevent the system to show system error, and thus make the error hard to find
Expected Output
Max recursion limit exception. Got key error
Output of
pd.show_versions()
pandas: 0.18.1
nose: 1.3.7
pip: None
setuptools: None
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: