Catch ValueError as well