TeamHG-Memex / soft404

A classifier for detecting soft 404 pages
56 stars 14 forks source link

pages with missing body tags break the probability() function #18

Open shahsparx opened 5 years ago

shahsparx commented 5 years ago

import soft404 soft404.probability('<html><head><title>hola</title></head></html>')

AttributeError: 'NoneType' object has no attribute 'tag'

dogancanbakir commented 4 years ago

@shahsparx This is fixed via https://github.com/dogancanbakir/soft-404/commit/d7779c077c51c437933eced4d1165ecfe7d9e20c