chore(core): catch possible EOFError when parsing translations header

[no changelog]
pull/3540/head
grdddj 4 months ago committed by Jiří Musil
parent f234d19992
commit 5ce5d47171

@ -70,7 +70,7 @@ async def do_change_language(
header_data = await _get_data_chunk(data_length, 0)
try:
header = translations.TranslationsHeader(header_data)
except ValueError:
except (ValueError, EOFError):
raise DataError("Invalid translations data")
# Verifying header information

Loading…
Cancel
Save