Title: Fixed: specified exception type in cbook.py by Jaylon0418 · Pull Request #31489 · matplotlib/matplotlib · GitHub
Open Graph Title: Fixed: specified exception type in cbook.py by Jaylon0418 · Pull Request #31489 · matplotlib/matplotlib
X Title: Fixed: specified exception type in cbook.py by Jaylon0418 · Pull Request #31489 · matplotlib/matplotlib
Description: PR summary Solved the Fixme comment in cbook.py, for a more specified exception type. Replaced except Exception with except(TypeError, ValueError). The change is made based on how np.isinfinite() works. AI Disclosure I used AI for finding the problem, but wrote it by hand(literally one line:) PR checklist [N/A] "closes #0000" is in the body of the PR description to link the related issue [N/A] new and changed code is tested [N/A] Plotting related features are demonstrated in an example [N/A] New Features and API Changes are noted with a directive and release note [N/A] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Solved the Fixme comment in cbook.py, for a more specified exception type. Replaced except Exception with except(TypeError, ValueError). The change is made based on how np.isinfinite() ...
X Description: PR summary Solved the Fixme comment in cbook.py, for a more specified exception type. Replaced except Exception with except(TypeError, ValueError). The change is made based on how np.isinfinite() ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/31489
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:951e5a50-bd79-fb03-813a-2cd982853f4a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D532:147EC0:1C08D97:251D502:6A52D2B3 |
| html-safe-nonce | 12904eb4a0be9d3fcbf769d2d743c25ccbce3e04c8cdaebce218e3e346f4cce2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTMyOjE0N0VDMDoxQzA4RDk3OjI1MUQ1MDI6NkE1MkQyQjMiLCJ2aXNpdG9yX2lkIjoiODA4MTc5NTgxMDQwMzIwOTkwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2dfda818c9e15f1f8eb45b803ad0c4688085b319a6b422f7fafe0960e9c8ccfa |
| hovercard-subject-tag | pull_request:3517528858 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/31489/files |
| twitter:image | https://avatars.githubusercontent.com/u/127211626?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/127211626?s=400&v=4 |
| og:image:alt | PR summary Solved the Fixme comment in cbook.py, for a more specified exception type. Replaced except Exception with except(TypeError, ValueError). The change is made based on how np.isinfinite() ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width