Do not fail to translate model field that does not exist

This commit is contained in:
Cédric Krier
2025-01-29 23:23:22 +01:00
parent a878b8055d
commit 7a4182ad6a
+1 -1
View File
@@ -386,7 +386,7 @@ class Translation(
try:
field = getattr(
pool.get(record.model), record.name)
except KeyError:
except (KeyError, AttributeError):
continue
translations[record.id] = ''
if ttype == 'field':