Avoid raising exception when file is corrupt