Try to catch ValueError for ambiguous transformations