Python, 'NoneType' object has no attribute 'get_text'
<p>The output says: </p>

<blockquote>
  <p>'NoneType' object has no attribute 'get_text'</p>
</blockquote>

<p>How can I fix this?</p>

<pre><code>response = requests.get("https://www.exar.com/careers")

soup = BeautifulSoup(response.text, "html.parser")

data = []

table_main = soup.find_all("table", class_="table")
#pprint(table_main)

for table_row in table_main:
    job_category = table_row.find("th", class_="t3th").get_text().strip()
    tds = table_row.find_all("td")
    title = tds[0].find("td").get_text().strip()
    location = tds[1].find("td").get_text().strip()

    job = {
        "job_location": location,
        "job_title": title,
        "job_dept": job_category
    }
    data.append(job)

pprint(data)
</code></pre>