SHARE
TWEET

Untitled

a guest Mar 9th, 2012 500 Never
  1. $ python invalid_tags.py
  2. Traceback (most recent call last):
  3.   File "invalid_tags.py", line 17, in <module>
  4.     print strip_tags(html, invalid_tags)
  5.   File "invalid_tags.py", line 10, in strip_tags
  6.     c = strip_tags(c, invalid_tags)
  7.   File "invalid_tags.py", line 4, in strip_tags
  8.     soup = BeautifulSoup(html)
  9.   File "/usr/lib/python2.7/dist-packages/BeautifulSoup.py", line 1519, in __init__
  10.     BeautifulStoneSoup.__init__(self, *args, **kwargs)
  11.   File "/usr/lib/python2.7/dist-packages/BeautifulSoup.py", line 1140, in __init__
  12.     markup = markup.read()
  13. TypeError: 'NoneType' object is not callable
RAW Paste Data
Top