2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

chery picked all fixed trans str from #1438 (#1554)

This commit is contained in:
Matthias Mair
2021-05-06 12:29:58 +02:00
committed by GitHub
parent 3511b4adda
commit 39d4129157
6 changed files with 26 additions and 30 deletions

View File

@ -202,7 +202,7 @@ class CompanyImageDownloadFromURL(AjaxUpdateView):
# Check for valid response code
if not response.status_code == 200:
form.add_error('url', f"{_('Invalid response')}: {response.status_code}")
form.add_error('url', _('Invalid response: {code}').format(code=response.status_code))
return
response.raw.decode_content = True