I think its ValueError, but the point is that if the input file has some bad data which cannot be converted into JSON, we don't want the whole parsing to fail. Without catching the exception, naarad will die right now if it encounters bad data.