Catch error in json_read in tifffile.py