Fixed bug with accidentally assigning a value to ValueError