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

[Sentinel-Intel] Improve error handling in Sentinel API client #3445

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

Powlinett
Copy link
Member

Proposed changes

  • raise errors instead of returning None in _send_request()
  • refacto error handling in API handler
  • handle API handler errors in process_message()

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

Related to #3425

- raise errors instead of returning None in _send_request()
- refacto error handling in API handler
- handle API handler errors in process_message()
@Powlinett Powlinett added filigran team use to identify PR from the Filigran team do not merge Do not merge this PR until this tag will be removed labels Feb 18, 2025
@Powlinett Powlinett self-assigned this Feb 18, 2025
Copy link
Member

@helene-nguyen helene-nguyen left a comment

Choose a reason for hiding this comment

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

Thank you @Powlinett for this improvement, really appreciate your effort in making this better! 🚀
Everything looks good to me :)

@SamuelHassine
Copy link
Member

Can we merge this one @helene-nguyen @Powlinett?

@Powlinett Powlinett removed the do not merge Do not merge this PR until this tag will be removed label Feb 20, 2025
@SamuelHassine SamuelHassine merged commit c490390 into master Feb 20, 2025
4 checks passed
@SamuelHassine SamuelHassine deleted the issue/3444-sentinel-intel-error-handling branch February 20, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants