Skip to content

fix: replace bare except with except Exception#5232

Open
harshadkhetpal wants to merge 2 commits intoSkyvern-AI:mainfrom
harshadkhetpal:fix/bare-except-pydantic-utilities
Open

fix: replace bare except with except Exception#5232
harshadkhetpal wants to merge 2 commits intoSkyvern-AI:mainfrom
harshadkhetpal:fix/bare-except-pydantic-utilities

Conversation

@harshadkhetpal
Copy link
Copy Markdown

Summary

Replace bare except: with except Exception: in skyvern/client/core/pydantic_utilities.py.

Bare except: catches all exceptions including SystemExit, KeyboardInterrupt, and GeneratorExit, which should typically propagate. Per PEP 8 (E722).

# Before
except:

# After
except Exception:

Testing

No behavior change — style/correctness fix only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants