The problem with KeyError is when one of the fields within my JSON don\'t have a value or don\'t exist at all. To solve it, I put my loop in an exception so it can skip this