misc: ignore empty block field when looking for prefilled value (#47804)

This commit is contained in:
Frédéric Péters 2020-10-16 17:03:17 +02:00
parent c844b914e4
commit 6c89c0b8e6
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class FormPage(Directory, FormTemplateMixin):
try:
current_value = data[block.id]['data'][0][field.id]
has_current_value = True
except (IndexError, KeyError, ValueError):
except (IndexError, KeyError, TypeError, ValueError):
pass
else:
try: