diff --git a/brancheneinstufung.py b/brancheneinstufung.py index 5fe04f87..7bc421d6 100644 --- a/brancheneinstufung.py +++ b/brancheneinstufung.py @@ -146,7 +146,7 @@ def get_wikipedia_data(name, website_hint=""): th, td = row.find("th"), row.find("td") if not th or not td: continue - if "Branche" in th.text: + if th and "branche" in th.text.lower().strip(): branche = td.text.strip() if "Umsatz" in th.text: umsatz_raw = td.text.strip()