Modify

Opened 5 years ago

Last modified 5 years ago

#5824 assigned defect

Timeline RSS-Feed doesn't work with Trac 0.11

Reported by: anonymous Owned by: smithsos
Priority: normal Component: RssEmbedMacro
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

I tried to use this macro together with the in trac built in RSS Feed for the timeline But I get this Error:

coercing to Unicode: need string or buffer, NoneType found

The Trac Log tells me this:

2009-09-15 14:28:53,012 Trac[formatter] ERROR: Macro RssEmbed(url=http://***/projects/***/timeline?ticket=on&max=50&daysback=90&format=rss,details=true) failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/wiki/formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/wiki/formatter.py", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/wiki/formatter.py", line 166, in _macro_processor
    text)
  File "build/bdist.linux-x86_64/egg/rssembed/macro.py", line 91, in expand_macro
    return "Cannot contact server: "+outputText+"\n ("+url+" "+ proxy + ")"
TypeError: coercing to Unicode: need string or buffer, NoneType found

A solution would be welcome.

Attachments (1)

proxyfix.patch (540 bytes) - added by n1l0c2501+trac_hacks@… 5 years ago.
Fix for this issue I found acceptable

Download all attachments as: .zip

Change History (3)

comment:1 Changed 5 years ago by smithsos

  • Status changed from new to assigned

comment:2 Changed 5 years ago by n1l0c2501+trac_hacks@…

I had this too, it's due to proxy being set as None if no proxy field is entered and a HTTPError or URLError occurs. My patch file fixes this problem.

Changed 5 years ago by n1l0c2501+trac_hacks@…

Fix for this issue I found acceptable

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.