-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: add improperly configured exception in load permissions function #274
Conversation
056afe4
to
f040a5f
Compare
7ac729e
to
ea06157
Compare
Thanks for the PR, @BryanttV, it works. We implemented this fix in eox-tenant, https://github.com/eduNEXT/eox-tenant/pull/178/files, but I wonder if that's the best way. Well... If we use this solution, I suggest adding more code documentation explaining why we need this. |
ea06157
to
c52c906
Compare
9e6adaa
to
8f54684
Compare
Hi @MaferMazu, As the error is raised in the same try-except we can simplify the code and add another exception. It works the same, but it is clearer. I also updated the comment about the reasons for including this code. Let me know if you want any additional modifications, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @BryanttV. I agree that catching both exceptions in a single except block is better than what was done in eox-tenant. I just have a suggestion regarding the code comment.
Description
This PR adds an
ImproperlyConfigured
exception inload_permissions
function to avoid errors during the build.Error
Details of error
Testing instructions
Create an environment with Redwood release, you can use Tutor or TVM.
Add in your
config.yml
this plugin as extra requirement.Run
tutor images build openedx --no-cache
Your build should finish smoothly.