Title: Exception types not subclassing a single SubstackException · Issue #28 · ma2za/python-substack · GitHub
Open Graph Title: Exception types not subclassing a single SubstackException · Issue #28 · ma2za/python-substack
X Title: Exception types not subclassing a single SubstackException · Issue #28 · ma2za/python-substack
Description: All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of these exception classes in one's exceptclau...
Open Graph Description: All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of the...
X Description: All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly eac...
Opengraph URL: https://github.com/ma2za/python-substack/issues/28
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception types not subclassing a single SubstackException","articleBody":"All the library's exceptions inherit directly from Python's `Exception` which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of these exception classes in one's `except`clause. Also, if some day another exception type is added by the library, it will escape this `try...except` piece of code.\r\n\r\nThis is not a bug, but an enhancement: having all substack exception types subclass a `SubstackException`(itself suclassing `Exception`) would make it easier for client code.","author":{"url":"https://github.com/rgeronimi","@type":"Person","name":"rgeronimi"},"datePublished":"2024-03-01T08:28:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/python-substack/issues/28"}
| 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:1cea0b82-219f-522b-c736-f01c62b1eadd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA60:3DCAA5:9D3D5:CC550:698E9D6D |
| html-safe-nonce | 5fd925cc361e39c43e9313f8847b65fde5d9e6a024c05ac3bce7a5f2fc0643b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTYwOjNEQ0FBNTo5RDNENTpDQzU1MDo2OThFOUQ2RCIsInZpc2l0b3JfaWQiOiIzNzM3NzMyMTcxOTk5MTI0ODQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e76c17bc8a87ad93778832b789105f715c223e07e292438d1af785d98d582b8 |
| hovercard-subject-tag | issue:2162877436 |
| 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/ma2za/python-substack/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9273e0d044a80146bf078785b584d423414ab8d7a027c03b5dc65350d2a78ca3/ma2za/python-substack/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9273e0d044a80146bf078785b584d423414ab8d7a027c03b5dc65350d2a78ca3/ma2za/python-substack/issues/28 |
| og:image:alt | All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rgeronimi |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/ma2za/python-substack git https://github.com/ma2za/python-substack.git |
| octolytics-dimension-user_id | 59370937 |
| octolytics-dimension-user_login | ma2za |
| octolytics-dimension-repository_id | 507708304 |
| octolytics-dimension-repository_nwo | ma2za/python-substack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 507708304 |
| octolytics-dimension-repository_network_root_nwo | ma2za/python-substack |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width