restore error handling of invalid pdf formats

This commit is contained in:
Emmanuel Viennet 2023-09-26 22:01:04 +02:00
parent 34486ac6f8
commit f842181dd4

View File

@ -136,7 +136,7 @@ class WrapDict(object):
try:
value = self.dict[key]
except KeyError:
raise
return f"XXX {key} invalide XXX"
if value is None:
return self.none_value
return value