libo26 / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

TypeError: cannot concatenate 'str' and 'list' objects #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
    1. Try parsing this feed: 
    http://feeds.feedburner.com/NomadsPlaylist

What is the expected output? What do you see instead?
    It should parse the feed, or complain that it's not valid. Instead the parser crashes.

What version of the product are you using? On what operating system?
    __version__ = "4.2-pre-" + "$Revision$"[11:14] + "-svn"
    running on app engine. Python version 2.5

Here is the stack trace:

  File "/base/data/home/apps/myapp/4.34/api/pshb.py", line 191, in new_update
    data = feedparser.parse(feed_content)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 3587, in parse
    feedparser.feed(data)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 1717, in feed
    sgmllib.SGMLParser.feed(self, data)
  File "/base/python_runtime/python_dist/lib/python2.5/sgmllib.py", line 99, in feed
    self.goahead(0)
  File "/base/python_runtime/python_dist/lib/python2.5/sgmllib.py", line 138, in goahead
    k = self.parse_endtag(i)
  File "/base/python_runtime/python_dist/lib/python2.5/sgmllib.py", line 315, in parse_endtag
    self.finish_endtag(tag)
  File "/base/python_runtime/python_dist/lib/python2.5/sgmllib.py", line 355, in finish_endtag
    self.unknown_endtag(tag)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 580, in unknown_endtag
    method()
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 1435, in _end_description
    value = self.popContent('description')
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 867, in popContent
    value = self.pop(tag)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 782, in pop
    mfresults = _parseMicroformats(output, self.baseuri, self.encoding)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 2274, in _parseMicroformats
    p.vcard = p.findVCards(p.document)
  File "/base/data/home/apps/myapp/4.34/lib/feedparser.py", line 2140, in findVCards
    sPostalCode + ';' +
TypeError: cannot concatenate 'str' and 'list' objects

Original issue reported on code.google.com by ninuawal...@gmail.com on 16 Jun 2010 at 7:48

GoogleCodeExporter commented 9 years ago
The feed you referred to has changed and the current version no longer exhibits 
the problem you described. Next time it happens, please save the feed and 
attach it to this bug.

Original comment by a...@google.com on 20 Jun 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Please close this bug.

Tested using svn trunk, BeautifulSoup 3.0.6, and the URL provided.

Waleed, please download the latest version of feedparser from svn trunk [1] and 
make sure that you have a current release of BeautifulSoup (not 3.1.x!) 
installed in your appengine instance.

[1]: https://feedparser.googlecode.com/svn/trunk/feedparser/feedparser.py

Original comment by kurtmckee on 4 Dec 2010 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by adewale on 4 Dec 2010 at 10:17