Title: fix: 4 additional raise sites missing exception chaining with 'from' · Issue #2575 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: 4 additional raise sites missing exception chaining with 'from' · Issue #2575 · modelcontextprotocol/python-sdk
X Title: fix: 4 additional raise sites missing exception chaining with 'from' · Issue #2575 · modelcontextprotocol/python-sdk
Description: Follow-up to #2564 which fixed 12 sites. After reviewing the codebase, I found 4 additional sites that were missed. Sites File Line Fix server/mcpserver/resources/templates.py 133 add from e shared/experimental/tasks/in_memory_task_store...
Open Graph Description: Follow-up to #2564 which fixed 12 sites. After reviewing the codebase, I found 4 additional sites that were missed. Sites File Line Fix server/mcpserver/resources/templates.py 133 add from e shared...
X Description: Follow-up to #2564 which fixed 12 sites. After reviewing the codebase, I found 4 additional sites that were missed. Sites File Line Fix server/mcpserver/resources/templates.py 133 add from e shared...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix: 4 additional raise sites missing exception chaining with 'from'","articleBody":"Follow-up to #2564 which fixed 12 sites. After reviewing the codebase, \nI found 4 additional sites that were missed.\n\n## Sites\n\n| File | Line | Fix |\n|------|------|-----|\n| server/mcpserver/resources/templates.py | 133 | add `from e` |\n| shared/experimental/tasks/in_memory_task_store.py | 172 | add `from None` |\n| server/mcpserver/prompts/base.py | 184 | add `from None` |\n| server/mcpserver/prompts/base.py | 189 | add `from e` |\n\n## Impact\nSame as #2564 — without `from`, Python shows \n\"During handling of the above exception, another exception occurred\" \ninstead of \"The above exception was the direct cause\". \nCallers cannot inspect `__cause__` programmatically.\n\nI have a PR ready for this.","author":{"url":"https://github.com/siddhirajkatkar","@type":"Person","name":"siddhirajkatkar"},"datePublished":"2026-05-11T17:42:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2575/python-sdk/issues/2575"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:375f7854-abea-a862-c105-e4782e5e8794 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B00:29B50C:13F53D5:1C7D868:6A5A21D1 |
| html-safe-nonce | b1282fe132d3f41957c3b4e18aa1af83ab3f71cda9b482ac2c14e242864dfc2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjAwOjI5QjUwQzoxM0Y1M0Q1OjFDN0Q4Njg6NkE1QTIxRDEiLCJ2aXNpdG9yX2lkIjoiNjI5OTE3Mzk2NzgyMDg5MDU3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a620fef1e3f13e08f53c2eb9880db50a8cb96efb421dab410767bd49383d1fc5 |
| hovercard-subject-tag | issue:4422988021 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/modelcontextprotocol/python-sdk/2575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9560fae5bdd9bfcf855d36912fcac00d4cbba8f07125f76cc6d9ea5640114890/modelcontextprotocol/python-sdk/issues/2575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9560fae5bdd9bfcf855d36912fcac00d4cbba8f07125f76cc6d9ea5640114890/modelcontextprotocol/python-sdk/issues/2575 |
| og:image:alt | Follow-up to #2564 which fixed 12 sites. After reviewing the codebase, I found 4 additional sites that were missed. Sites File Line Fix server/mcpserver/resources/templates.py 133 add from e shared... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | siddhirajkatkar |
| hostname | github.com |
| expected-hostname | github.com |
| None | e31742e80bbd077fd5679c13ed870ce4e0c13803a2fa5beaae557b6769de2c8a |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9fcdbf98c619d1561ed843fa01d9766a32b5cd9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width