Commit dd6d6ea2 authored by Michal Čihař's avatar Michal Čihař

This can throw IndexError as well

parent bca385d0
......@@ -166,7 +166,7 @@ class ChecksumForm(forms.Form):
self.cleaned_data['unit'] = unit_set.filter(
checksum=self.cleaned_data['checksum'],
)[0]
except Unit.DoesNotExist:
except (Unit.DoesNotExist, IndexError):
weblate.logger.error(
'message %s disappeared!',
self.cleaned_data['checksum']
......
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