try, except clause was too broad, now uses except ValueError: