forked from ScoDoc/ScoDoc
restore error handling of invalid pdf formats
This commit is contained in:
parent
34486ac6f8
commit
f842181dd4
@ -136,7 +136,7 @@ class WrapDict(object):
|
|||||||
try:
|
try:
|
||||||
value = self.dict[key]
|
value = self.dict[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise
|
return f"XXX {key} invalide XXX"
|
||||||
if value is None:
|
if value is None:
|
||||||
return self.none_value
|
return self.none_value
|
||||||
return value
|
return value
|
||||||
|
Loading…
Reference in New Issue
Block a user