Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 9th, 2012  |  syntax: None  |  size: 0.60 KB  |  views: 352  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data