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

Handle get_db_object() failures as DownloadException #2276

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Oct 29, 2024

Status

Ready for review

Description

Our error handling expects that failures from DownloadJobs raise DownloadExceptions, so let's do that.

This is roughly the same concept as a9f0590, just in a different part of the code. The exception handling has to exist in each class (instead of one_or_none()) because we need to know the corresponding type to pass to DownloadException.

Fixes #2274.

Test Plan

Checklist

  • These changes should not need testing in Qubes

@legoktm legoktm added this to the 0.14.0 milestone Oct 29, 2024
@legoktm legoktm requested a review from a team as a code owner October 29, 2024 22:02
Our error handling expects that failures from DownloadJobs raise
DownloadExceptions, so let's do that.

This is roughly the same concept as a9f0590, just in a different
part of the code. The exception handling has to exist in each class
(instead of `one_or_none()`) because we need to know the corresponding
type to pass to DownloadException.

Fixes #2274.
@legoktm legoktm force-pushed the optional-get_db_object branch from 2b3c229 to 12f75f0 Compare October 29, 2024 22:20
Copy link
Contributor

@deeplow deeplow left a comment

Choose a reason for hiding this comment

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

Approving based on visual review solely, since I couldn't reproduce the original issue, tests pass and it looks straightforward enough.

I tried to look for other variants of this issue in the code and didn't spot any other.

@legoktm legoktm added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit 24819dc Nov 1, 2024
58 checks passed
@legoktm legoktm deleted the optional-get_db_object branch November 1, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

on_reply_download_failure() assumes exceptions have a uuid attribute
2 participants