galerts icon indicating copy to clipboard operation
galerts copied to clipboard

GAlertsManager.create(..) fails with TypeError: 'NoneType' object has no attribute '__getitem__'

Open jab opened this issue 9 years ago • 1 comments

.../galerts/galerts.pyc in _scrape_sig(self, path)
    356                 )
    357         soup = BeautifulSoup(body)
--> 358         sig = soup.findChild('input', attrs={'name': 'x'})['value']
    359         return str(sig)

TypeError: 'NoneType' object has no attribute '__getitem__'

(Without looking into it further, this could just be the result of running against the latest version of BeautifulSoup, which may have introduced a breaking change to this API since the version it was coded against. Unfortunately galerts' setup.py does not peg to a specific BeautifulSoup version, and I don't have time at the moment for more archaeology / testing.)

jab avatar Jul 07 '15 16:07 jab

Oh, seeing #13 now, this is probably a result of that.

jab avatar Jul 07 '15 16:07 jab