| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Replace bare `except:` with specific exception tuple `except (TypeError, ValueError, AttributeError, KeyError):` in union property parsing template. This improves code quality by: - Making error handling more explicit and intentional - Avoiding catching system exceptions like KeyboardInterrupt or SystemExit - Removing the need for noqa: E722 linting suppressions - Making the code comply with PEP 8 style guidelines All generated models with union properties now use specific exception handling in their _parse functions.
There was a problem hiding this comment.
Lovely, thanks!
Sorry, something went wrong.
> [!IMPORTANT] > Merging this pull request will create this release ## Fixes - Remove non-existent CHANGELOG.md references from UV and Poetry templates (#1344) - Initialize optional lists as UNSET, not [] (#1346) - Correct docstring typos in client template (#1347) - Replace bare except blocks with specific exception types (#1348) ### Update `uv_build` to 0.9 #1352 by @johnthagen `uv` has been in the `0.9.x` release cycle for a while, so update templates to use the corresponding `uv_build` range. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Summary
Replace bare except: blocks with specific exception tuple except (TypeError, ValueError, AttributeError, KeyError): in the union property parsing template.
Changes
Benefits
Test plan