more bug fix
This commit is contained in:
parent
421c8883f6
commit
79d161d829
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user