Advertisement
Guest User

Untitled

a guest
Mar 9th, 2012
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement