Modify

Opened 15 years ago

Last modified 15 years ago

#5824 assigned defect

Timeline RSS-Feed doesn't work with Trac 0.11

Reported by: anonymous Owned by: Simon Smithson
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@… 15 years ago.
Fix for this issue I found acceptable

Download all attachments as: .zip

Change History (3)

comment:1 Changed 15 years ago by Simon Smithson

Status: newassigned

comment:2 Changed 15 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 15 years ago by n1l0c2501+trac_hacks@…

Attachment: proxyfix.patch added

Fix for this issue I found acceptable

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Simon Smithson.

Add Comment


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

 
Note: See TracTickets for help on using tickets.