Title: gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value by tomasr8 · Pull Request #128653 · python/cpython · GitHub
Open Graph Title: gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value by tomasr8 · Pull Request #128653 · python/cpython
X Title: gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value by tomasr8 · Pull Request #128653 · python/cpython
Description: This fixes the crash by catching TypeError and ValueError in addition to KeyError. I'm not sure if this the best fix, but it's the least invasive one. Feedback welcome! Issue: gh-128636
Open Graph Description: This fixes the crash by catching TypeError and ValueError in addition to KeyError. I'm not sure if this the best fix, but it's the least invasive one. Feedback welcome! Issue: gh-128636
X Description: This fixes the crash by catching TypeError and ValueError in addition to KeyError. I'm not sure if this the best fix, but it's the least invasive one. Feedback welcome! Issue: gh-128636
Opengraph URL: https://github.com/python/cpython/pull/128653
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7debf566-1fe7-f660-c518-f6613716cfcf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E02C:360707:976335:DDD291:6A54AFC2 |
| html-safe-nonce | 9f00eb14eb46470f71633cc947a47e07431032b348e0ed3ce05547670434e584 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDJDOjM2MDcwNzo5NzYzMzU6REREMjkxOjZBNTRBRkMyIiwidmlzaXRvcl9pZCI6IjY4ODcyODQ4MTQ2MTkzODk4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a40843258c0ca21ac26b93c7d305d78db6218068ad4d143d3f18fe43b47a179 |
| hovercard-subject-tag | pull_request:2267109312 |
| 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/python/cpython/pull/128653/files |
| twitter:image | https://avatars.githubusercontent.com/u/8739637?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8739637?s=400&v=4 |
| og:image:alt | This fixes the crash by catching TypeError and ValueError in addition to KeyError. I'm not sure if this the best fix, but it's the least invasive one. Feedback welcome! Issue: gh-128636 |
| 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/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width