more bug fix

This commit is contained in:
iou1name 2018-07-12 20:17:34 -04:00
parent 421c8883f6
commit 79d161d829

View File

@ -29,7 +29,13 @@ def gettld(bot, trigger):
if not td:
return bot.msg(f"Unable to find data for TLD: {word}")
table_headers = [th.string for th in td.parent.parent.find_all("th")]
table_headers = []
for th in td.parent.parent.find_all("th"):
header = th.string
if not header:
header = th.a.string
table_headers.append(header)
if None in table_headers:
n = table_headers.index(None)
table_headers[n] = "Administrator"