diff --git a/modules/tld.py b/modules/tld.py index 418a51c..2cd1b99 100755 --- a/modules/tld.py +++ b/modules/tld.py @@ -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"