Ticket #7253 (closed enhancement: worksforme)
Safely disable translations to stop "AttributeError: translations"
| Reported by: | Pedro Algarvio, aka, s0undt3ch <ufs@…> | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | i18n | Version: | 0.12dev |
| Severity: | trivial | Keywords: | verify |
| Cc: |
Description
Although this was found while working on a plugin, this could be avoided.
If one raises RequestDone too soon for a translation to be activated, one get's an AttributeError and this could be avoided by first checking if there's actually a translations attribute prior to deleting it.
A patch follows.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


