Skip to content

lazyjson 2.7.0 — retry loads

Compare
Choose a tag to compare
@fenhl fenhl released this 07 Nov 01:24

With this update, loading a File from disk will be retried up to 10 times if the load fails with a JSONDecodeError. This avoids intermittent errors when the file is in the process of being written to disk. The optional tries argument of the File constructor can be used to override the number of attempts; use 1 to turn this feature off.