Skip to content

Update _raise_response_error to raise a generic exception - #521

Merged
Dany9966 merged 1 commit into
cloudbase:mainfrom
fabi200123:fix-bug-licensing
Sep 11, 2026
Merged

Update _raise_response_error to raise a generic exception#521
Dany9966 merged 1 commit into
cloudbase:mainfrom
fabi200123:fix-bug-licensing

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

Previously the _raise_response_error was returning a Conflict exception that had the code 409. This created a bug, so that if the licence was supposed to return a 403 Not Authorized, the exception code was still 409, causing an issue.

This commit changes the exception.Conflict to a generic exception, preserving the exception code received, rather than using 409 for all.

@fabi200123 fabi200123 changed the title Update _raise_response_error to raise a generic error Update _raise_response_error to raise a generic exception Sep 8, 2026
Previously the _raise_response_error was returning a Conflict
exception that had the code 409. This created a bug, so that if the
licence was supposed to return a 403 Not Authorized, the exception
code was still 409, causing an issue.

This commit changes the exception.Conflict to a generic exception,
preserving the exception code received, rather than using 409 for all.
@Dany9966
Dany9966 merged commit a9fb8e3 into cloudbase:main Sep 11, 2026
5 checks passed
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