quinn at regurgitate.ugcs.caltech.edu (Quinn Dunkan) wrote: > for o in '.'.split(ip_addr): > assert 0 <= int(o) <= 255, 'ip octet not a byte in "%s"' % ip_addr Don't you also have to catch the ValueError you'll get if o is not a valid integer?