X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=lightcards%2Fparse.py;h=6fc2a759cf2ac152f636b9a376efa9ddf2d9db29;hb=4e5a09ff518efbffe31ce064334cb1db1d42eae4;hp=ea3468d66bfdca5f898431ce3a8d6743712b405f;hpb=08e393b41878e67e92e1031cfe69d909df453b60;p=lightcards.git diff --git a/lightcards/parse.py b/lightcards/parse.py index ea3468d..6fc2a75 100644 --- a/lightcards/parse.py +++ b/lightcards/parse.py @@ -32,7 +32,7 @@ def parse_html(html): sys.exit("lightcards: No table found") ths = soup.find_all("th") - if not len(ths) in [1, 2]: + if len(ths) != 2: sys.exit("lightcards: Headings malformed") # Return a tuple of nested lists