Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingValueForParameter should be a SkyvernHTTPException #687

Merged

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Aug 8, 2024

🚀 This description was created by Ellipsis for commit 177db3f

Summary:

Changed MissingValueForParameter to inherit from SkyvernHTTPException in skyvern/exceptions.py to utilize HTTP-specific features.

Key points:

  • Changed MissingValueForParameter to inherit from SkyvernHTTPException instead of SkyvernException in skyvern/exceptions.py.
  • This change allows MissingValueForParameter to utilize HTTP-specific features, such as status codes.
  • No other changes were made to the functionality or parameters of the exception class.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 177db3f in 43 seconds

More details
  • Looked at 19 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_dUDSzIC5e1ExDSuC


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.



class MissingValueForParameter(SkyvernException):
class MissingValueForParameter(SkyvernHTTPException):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change to SkyvernHTTPException implies that MissingValueForParameter will now include an HTTP status code, defaulting to 400. Ensure this status code aligns with the intended use of this exception.

@wintonzheng wintonzheng merged commit 7249938 into main Aug 8, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/fix_MissingValueForParameter_workflow_endpoint_500 branch August 8, 2024 00:40
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.

1 participant