# HG changeset patch # User Denis Laxalde # Date 1420644147 -3600 # Node ID 2eb06486273a2bedc3dd9c7b43829910178cf8ad # Parent f4a4556f23da8034d66d718466b3d18b625611a9 [datafeed] Set headers parameter to an empty dict in DataFeedParser.retrieve_url This parameter is then passed to urllib2.Request, which expects a dict and won't check for None. Closes #4842333. diff -r f4a4556f23da -r 2eb06486273a server/sources/datafeed.py --- a/server/sources/datafeed.py Thu Jan 22 10:43:24 2015 +0100 +++ b/server/sources/datafeed.py Wed Jan 07 16:22:27 2015 +0100 @@ -319,6 +319,8 @@ * handle file:// URL * other will be considered as plain content, useful for testing purpose """ + if headers is None: + headers = {} if url.startswith('http'): url = self.normalize_url(url) if data: