from price import ring_cost ring_cost('price_missing csv'invalid datarow is skipped row reason could not convert string to float nextreplace the 'intwith 'integerat line we are introducing error in the code price py import csv def ring_cost(filename)''calculate the total cost ''total_price for all items in the list with open(filename' 'as fopen file in read mode rows csv reader(fheader next(rowsskip line header for row_numrow in enumerate(rowsstart= )start from not tryrow[ float(row[ ]price row[ integer(row[ ]quantity except exception as errprocess valueerror only print("invalid datarow is skipped"print('row{}reason {}format(row_numerr)continue total_price +row[ row[ print("total price % ftotal_pricereturn total_price return total_price def main()total ring_cost('price csv'function call print("total price % totalprint value standard boilerplate main is the starting function if __name__ ='__main__'main(now run the code again and it will give display following messageswhich has no relation with the actual error actual error is the 'integerat line since the conversion operation can not be performed now (due to invalid type 'integer')therefore error is catch for all the rows and the messages are generated for each row therefore it is very bad idea to catch errors using "exceptionkeyword from price import ring_cost ring_cost('price_missing csv'invalid datarow is skipped row reason name 'integeris not defined invalid datarow is skipped row reason could not convert string to floatinvalid datarow is skipped row reason name 'integeris not defined invalid datarow is skipped row reason name 'integeris not defined invalid datarow is skipped row reason name 'integeris not defined invalid datarow is skipped row reason name 'integeris not defined catch all error (bad practice