Skip to content

Commit fddc183

Browse files
committed
fix: Do not cache error states
1 parent 8e7e3bc commit fddc183

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/c2pa/c2pa.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,9 @@ def _get_cached_manifest_data(self) -> Optional[dict]:
16231623
self._manifest_json_str_cache
16241624
)
16251625
except json.JSONDecodeError:
1626+
# Reset cache to reattempt read, possibly
1627+
self._manifest_data_cache = None
1628+
self._manifest_json_str_cache = None
16261629
# Failed to parse manifest JSON
16271630
return None
16281631

0 commit comments

Comments
 (0)