Commit de6b0ca0 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 8c170681 8c03a2a6
......@@ -146,8 +146,9 @@ def search(translation, request):
try:
unit = allunits.filter(checksum=request.GET['checksum'])[0]
offset = unit_ids.index(unit.id)
except (Unit.DoesNotExist, ValueError):
pass
except (Unit.DoesNotExist, IndexError):
messages.warning(request, _('No string matched your search!'))
return HttpResponseRedirect(translation.get_absolute_url())
# Remove old search results
cleanup_session(request.session)
......
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