raise when handle's labels contains only tld or nothing
dwn.poxiao-labs.work 3 months ago 655e38b9 0becde3f
··· 25 25 26 26 labels = handle.lower().split(".") 27 27 28 28 + if len(labels) < 2: 29 29 + raise ValueError("are you tld?") 30 30 + 28 31 if labels[0] == "" or labels[-1] == "": 29 32 raise ValueError("proceeding or tariling ascii periods") 30 33