Title: bpo-29298: Fix crash for required subparsers in argparse by BenSokol · Pull Request #18564 · python/cpython · GitHub
Open Graph Title: bpo-29298: Fix crash for required subparsers in argparse by BenSokol · Pull Request #18564 · python/cpython
X Title: bpo-29298: Fix crash for required subparsers in argparse by BenSokol · Pull Request #18564 · python/cpython
Description: When an instance of subparsers is has required=True, and no subparser is found, an uncaught exception was thrown. OS: Windows - Cygwin Python Version: 3.8.0b4 This issue still appears to be present in master Fixes the following stack trace: ... File "/usr/lib/python3.8/argparse.py", line 1760, in parse_args args, argv = self.parse_known_args(args, namespace) File "/usr/lib/python3.8/argparse.py", line 1792, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/usr/lib/python3.8/argparse.py", line 2027, in _parse_known_args ', '.join(required_actions)) TypeError: sequence item 0: expected str instance, NoneType found https://bugs.python.org/issue29298
Open Graph Description: When an instance of subparsers is has required=True, and no subparser is found, an uncaught exception was thrown. OS: Windows - Cygwin Python Version: 3.8.0b4 This issue still appears to be present...
X Description: When an instance of subparsers is has required=True, and no subparser is found, an uncaught exception was thrown. OS: Windows - Cygwin Python Version: 3.8.0b4 This issue still appears to be present...
Opengraph URL: https://github.com/python/cpython/pull/18564
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c5a459ce-96c2-2c30-c979-30ff011c8e01 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8A24:1F16:4F7E823:7061C67:6A508B27 |
| html-safe-nonce | 12b8e9e5652bbba21e73e7a6a806ed3cce6b17bbd04db5cb3962eeba0f2f5c44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTI0OjFGMTY6NEY3RTgyMzo3MDYxQzY3OjZBNTA4QjI3IiwidmlzaXRvcl9pZCI6IjQxNTE0NzYxNTk4NjU5ODE3MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 005f5409df4e73e0dc26102581ac16e7ec68b42583ed21ee4a3ee04c49eda8da |
| hovercard-subject-tag | pull_request:377505704 |
| 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/18564/files |
| twitter:image | https://avatars.githubusercontent.com/u/30431897?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/30431897?s=400&v=4 |
| og:image:alt | When an instance of subparsers is has required=True, and no subparser is found, an uncaught exception was thrown. OS: Windows - Cygwin Python Version: 3.8.0b4 This issue still appears to be present... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width