Title: Use contextlib.suppress instead of except: pass by blablatdinov · Pull Request #113 · gitpython-developers/gitdb · GitHub
Open Graph Title: Use contextlib.suppress instead of except: pass by blablatdinov · Pull Request #113 · gitpython-developers/gitdb
X Title: Use contextlib.suppress instead of except: pass by blablatdinov · Pull Request #113 · gitpython-developers/gitdb
Description: IO of git-style object databases. Contribute to gitpython-developers/gitdb development by creating an account on GitHub.
Open Graph Description: This PR refactors the LooseObjectDB class in gitdb/db/loose.py to utilize contextlib.suppress for handling KeyError exceptions, replacing the previous try-except block. This change improves code re...
X Description: This PR refactors the LooseObjectDB class in gitdb/db/loose.py to utilize contextlib.suppress for handling KeyError exceptions, replacing the previous try-except block. This change improves code re...
Opengraph URL: https://github.com/gitpython-developers/gitdb/pull/113
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:aad36414-4e42-32b9-7956-62f136205c88 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9AC2:2159BC:A8172F:E81439:696958C8 |
| html-safe-nonce | 5075f0474ce744876edaef9cd253c17c1c157eda70474c5384625bd1f97751cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUMyOjIxNTlCQzpBODE3MkY6RTgxNDM5OjY5Njk1OEM4IiwidmlzaXRvcl9pZCI6IjE4ODY5NDAyNDM0MTk1NTE5NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89be1e7b47963c843f9fc9690a6c004b46b51d24391472fa3e3537f2853df9d9 |
| hovercard-subject-tag | pull_request:1910685596 |
| 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/gitpython-developers/gitdb/pull/113/commits |
| twitter:image | https://opengraph.githubassets.com/70124806c2a75775781405bbcd155d69096cbbb9fb462483263c21d122d0bc03/gitpython-developers/gitdb/pull/113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70124806c2a75775781405bbcd155d69096cbbb9fb462483263c21d122d0bc03/gitpython-developers/gitdb/pull/113 |
| og:image:alt | This PR refactors the LooseObjectDB class in gitdb/db/loose.py to utilize contextlib.suppress for handling KeyError exceptions, replacing the previous try-except block. This change improves code re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blablatdinov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a |
| turbo-cache-control | no-cache |
| go-import | github.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126093 |
| octolytics-dimension-repository_nwo | gitpython-developers/gitdb |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126093 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/gitdb |
| 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 | 4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width