Skip to content

Improper Exception Handling #8

Description

@shreyashkgupta

Issue Details

Severity: critical
Category: security
File Path: github_app/main.py

Description

critical

Impact

Returning an HTTPException directly without raising it will not stop the execution of the function, potentially leading to unexpected behavior.

Suggestion

Raise the HTTPException instead of returning it.

Code Sample
raise HTTPException(status_code=404, detail='Invalid Signature')
Proposed Solution
sol 1

✨ Generated with love by Kaizen ❤️

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions