mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[PR #1818] [MERGED] Catch errors in load_initial_data command #2302
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#2302
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/modoboa/modoboa/pull/1818
Author: @jeromelebleu
Created: 1/7/2020
Status: ✅ Merged
Merged: 1/13/2020
Merged by: @tonioo
Base:
master← Head:load_initial_data📝 Commits (1)
c30bc31core: catch errors in load_initial_data command📊 Changes
4 files changed (+36 additions, -7 deletions)
View changed files
📝
modoboa/core/management/commands/load_initial_data.py(+12 -3)📝
modoboa/core/tests/stupid_extension_1/modo_extension.py(+3 -1)📝
modoboa/core/tests/stupid_extension_2/modo_extension.py(+3 -0)📝
modoboa/core/tests/test_extensions.py(+18 -3)📄 Description
Current behavior before PR
While executing
load_initial_datacommand, an exception raised by an extension is not handled. As a result, the user could have difficulties to know what happened but also the command stops and the data of the other extensions will not be loaded - except with PostgreSQL database where no data at all will be loaded.Desired behavior after PR is merged
An error is displayed to tell that the extension data could not be initialized, and the process continues.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.