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: patch-diff.githubusercontent.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:ba3c8780-2af4-49f9-5783-c446c1d1f048 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC34:5D4C9:6C51BC:8EFD25:698EBDC5 |
| html-safe-nonce | 9ac56b0f41fc3c42aaa0e485f495e3cbf45f83eff81a168b657a681ee5113559 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzM0OjVENEM5OjZDNTFCQzo4RUZEMjU6Njk4RUJEQzUiLCJ2aXNpdG9yX2lkIjoiNzgwNzE3MTk5ODAwNjU1ODE0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cee6645ad25e77783933ca4236df29c9c199253dfe0c7960f30f340157cda4d6 |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width