Title: fix: re-raise existing exception when available by KowalskiThomas · Pull Request #667 · msgpack/msgpack-python · GitHub
Open Graph Title: fix: re-raise existing exception when available by KowalskiThomas · Pull Request #667 · msgpack/msgpack-python
X Title: fix: re-raise existing exception when available by KowalskiThomas · Pull Request #667 · msgpack/msgpack-python
Description: What is this PR? This PR addresses an issue I found while working on #666 and reported in the description there. Looking at the usages of unpack_callback_uint32 (here for example, which calls into this) it seems like it checks for error values -2 and -3, but -1 will just raise ValueError("Unpack failed: error = %d" % (ret,)). It believe it should just raise to raise the existing exception set by PyErr_SetString if it exists. This PR addresses that problem here and another place.
Open Graph Description: What is this PR? This PR addresses an issue I found while working on #666 and reported in the description there. Looking at the usages of unpack_callback_uint32 (here for example, which calls into ...
X Description: What is this PR? This PR addresses an issue I found while working on #666 and reported in the description there. Looking at the usages of unpack_callback_uint32 (here for example, which calls into ...
Opengraph URL: https://github.com/msgpack/msgpack-python/pull/667
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4fe7725f-4d30-be88-72e4-fedbf1376f80 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E11C:19730C:1043D5E:16379F6:6A52082D |
| html-safe-nonce | de4ed470435db76df899e8ad8ac083cf62a87e70b90ea5a10a8ee02baec50940 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTFDOjE5NzMwQzoxMDQzRDVFOjE2Mzc5RjY6NkE1MjA4MkQiLCJ2aXNpdG9yX2lkIjoiNDU5OTM5Nzg2OTY2OTE4OTY3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7606072ac341edbdae19e45be835779b707e765ffefbcd8c3e581828958e64c7 |
| hovercard-subject-tag | pull_request:3560253477 |
| 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/msgpack/msgpack-python/pull/667/files |
| twitter:image | https://avatars.githubusercontent.com/u/14239160?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/14239160?s=400&v=4 |
| og:image:alt | What is this PR? This PR addresses an issue I found while working on #666 and reported in the description there. Looking at the usages of unpack_callback_uint32 (here for example, which calls into ... |
| 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/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2242705 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2242705 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-python |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width