do not catch ValueError exceptions inside method by mistake