Title: SyntaxWarning: 'return' in a 'finally' block · Issue #3 · dannetstudio/hplip-python3.12 · GitHub
Open Graph Title: SyntaxWarning: 'return' in a 'finally' block · Issue #3 · dannetstudio/hplip-python3.12
X Title: SyntaxWarning: 'return' in a 'finally' block · Issue #3 · dannetstudio/hplip-python3.12
Description: When updating via apt, I got a number of warnings regarding return statements in finally blocks. Ubuntu: Ubuntu 26.04 LTS python: 3.14.4 version: 3.24.4+dfsg0-0ubuntu8.1 Notices: /usr/share/hplip/pcard/photocard.py:329: SyntaxWarning: 'r...
Open Graph Description: When updating via apt, I got a number of warnings regarding return statements in finally blocks. Ubuntu: Ubuntu 26.04 LTS python: 3.14.4 version: 3.24.4+dfsg0-0ubuntu8.1 Notices: /usr/share/hplip/p...
X Description: When updating via apt, I got a number of warnings regarding return statements in finally blocks. Ubuntu: Ubuntu 26.04 LTS python: 3.14.4 version: 3.24.4+dfsg0-0ubuntu8.1 Notices: /usr/share/hplip/p...
Opengraph URL: https://github.com/dannetstudio/hplip-python3.12/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SyntaxWarning: 'return' in a 'finally' block","articleBody":"When updating via apt, I got a number of warnings regarding return statements in finally blocks.\n\n**Ubuntu**: Ubuntu 26.04 LTS\n**python**: 3.14.4\n**version**: 3.24.4+dfsg0-0ubuntu8.1\n\n\n```shell\nNotices:\n /usr/share/hplip/pcard/photocard.py:329: SyntaxWarning: 'return' in a 'finally' block\n return df\n/usr/share/hplip/pcard/photocard.py:388: SyntaxWarning: 'return' in a 'finally' block\n return total\n /usr/share/hplip/pcard/photocard.py:415: SyntaxWarning: 'return' in a 'finally' block\n return (total, delta)\n/usr/share/hplip/pcard/photocard.py:454: SyntaxWarning: 'return' in a 'finally' block\n return (total, delta)\n/usr/share/hplip/pcard/photocard.py:465: SyntaxWarning: 'return' in a 'finally' block\n return total\n/usr/share/hplip/pcard/photocard.py:601: SyntaxWarning: 'return' in a 'finally' block\n return r\n/usr/share/hplip/pcard/photocard.py:655: SyntaxWarning: 'return' in a 'finally' block\n return dir_tree\n/usr/share/hplip/pcard/photocard.py:692: SyntaxWarning: 'return' in a 'finally' block\n return exif_info\n/usr/share/hplip/pcard/photocard.py:713: SyntaxWarning: 'return' in a 'finally' block\n return exif_info\n/usr/share/hplip/pcard/photocard.py:723: SyntaxWarning: 'return' in a 'finally' block\n return data\n /usr/share/hplip/prnt/cups.py:699: SyntaxWarning: 'return' in a 'finally' block\n return fax_ppd,expected_fax_ppd_name, nick\n /usr/share/hplip/ui5/faxsetupdialog.py:287: SyntaxWarning: 'return' in a 'finally' block\n return retn\n/usr/share/hplip/ui5/faxsetupdialog.py:323: SyntaxWarning: 'return' in a 'finally' block\n return retn\n````","author":{"url":"https://github.com/Tom-Camp","@type":"Person","name":"Tom-Camp"},"datePublished":"2026-07-01T11:49:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/hplip-python3.12/issues/3"}
| 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:2485da35-63d5-84c7-57f5-bd2ec3f08e68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E9A:371D84:22EF613:32B8A3B:6A4BE1C5 |
| html-safe-nonce | d6e7d50d72ce5536d216de7c07db466249e9c5b75fe8641f7b86bbd11dc2db16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTlBOjM3MUQ4NDoyMkVGNjEzOjMyQjhBM0I6NkE0QkUxQzUiLCJ2aXNpdG9yX2lkIjoiMjY3NDY5NzI2MzM5Mzc5MjQ1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0bda4262c41c12ff1e2a16b460cd4c0be16052bc91d30ff474e3938bfe151ef4 |
| hovercard-subject-tag | issue:4785233911 |
| 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/dannetstudio/hplip-python3.12/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83b0a954aff8bd107f56f992931bc950e7eede3ab6d842fb46c70e19c326d3f2/dannetstudio/hplip-python3.12/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83b0a954aff8bd107f56f992931bc950e7eede3ab6d842fb46c70e19c326d3f2/dannetstudio/hplip-python3.12/issues/3 |
| og:image:alt | When updating via apt, I got a number of warnings regarding return statements in finally blocks. Ubuntu: Ubuntu 26.04 LTS python: 3.14.4 version: 3.24.4+dfsg0-0ubuntu8.1 Notices: /usr/share/hplip/p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Tom-Camp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/dannetstudio/hplip-python3.12 git https://github.com/dannetstudio/hplip-python3.12.git |
| octolytics-dimension-user_id | 2724194 |
| octolytics-dimension-user_login | dannetstudio |
| octolytics-dimension-repository_id | 961769823 |
| octolytics-dimension-repository_nwo | dannetstudio/hplip-python3.12 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 961769823 |
| octolytics-dimension-repository_network_root_nwo | dannetstudio/hplip-python3.12 |
| 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 | 253920ac2dc35b0849cca4633895f1f2e5f03051 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width