Skip to content

Commit

Permalink
handle missing element by not generating a hyperlink
Browse files Browse the repository at this point in the history
ERROR    2012-03-24 18:13:38,681 plusfeed.py:375] coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
  File "/dev/github.com/dabble/plusfeed/plusfeed.py", line 309, in doFeed
    desc = desc + ' <br/><br/><a href="' + post[66][0][1] + '">' + post[66][0][3] + '</a>'
TypeError: coercing to Unicode: need string or buffer, NoneType found
INFO     2012-03-24 18:13:38,695 dev_appserver.py:4247] "GET /114474252347218597235 HTTP/1.0" 500 -
  • Loading branch information
dabble committed Mar 24, 2012
1 parent 27ed008 commit a8f1679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plusfeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def doFeed(self, p):

if post[66]:

if post[66][0][1]:
if post[66][0][3]:
desc = desc + ' <br/><br/><a href="' + post[66][0][1] + '">' + post[66][0][3] + '</a>'

if post[66][0][6]:
Expand Down

0 comments on commit a8f1679

Please sign in to comment.