add exception if send_email fails

add exception if barcode update fails