Opened 12 years ago
Closed 12 years ago
#21732 closed Cleanup/optimization (fixed)
compilemessages shouldn't crash if some LOCALE_PATHS is non writable
| Reported by: | Claude Paroz | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Scenario: you have added a path in LOCALE_PATHS for some system-wide (non-writable) location. When you run ./manage.py compilemessages, you get a CommandError:
CommandError: Execution of msgfmt failed: msgfmt: error while opening "/path/to/nonwritable/localedir/lang/LC_MESSAGES/messages.mo" for writing: Permission denied
Instead we should report the error on stderr and continue running the command.
Change History (2)
comment:1 by , 12 years ago
| Has patch: | set |
|---|---|
| Version: | 1.6 → master |
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/2146