Commit 2b3d838e authored by Michal Čihař's avatar Michal Čihař

Reload from backend on corruption

parent 89a9c0e6
......@@ -2322,6 +2322,8 @@ class Unit(models.Model):
if pounit is None:
logger.error('message %s disappeared!', self)
messages.error(request, _('Message not found in backend storage, it is probably corrupted.'))
# Try reloading from backend
self.translation.update_from_blob(True)
return
# Return if there was no change
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment