catch ValueErrors in data