From 79d161d829d52ac42f71dd184644f4920852ce26 Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 12 Jul 2018 20:17:34 -0400 Subject: [PATCH] more bug fix --- modules/tld.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"