Commit 9fa258d9 authored by Ivan Tyagov's avatar Ivan Tyagov

10s is can not be enough for some remote systems to generate RSS so be more tolerant.

parent 8a5ba4d9
......@@ -19,7 +19,7 @@ def getRssDataAsDict(self, url, username=None, password=None):
# set shorter timeouts and revert default at enf of read
default_timeout = socket.getdefaulttimeout()
socket.setdefaulttimeout(10.0)
socket.setdefaulttimeout(60.0)
d = feedparser.parse(url, handlers=handlers)
socket.setdefaulttimeout(default_timeout)
......@@ -57,4 +57,4 @@ def getRssDataAsDict(self, url, username=None, password=None):
result['items'] = sorted(result['items'], key=lambda k: k['updated_parsed'])
result['items'].reverse()
result['status'] = 0
return result
\ No newline at end of file
return result
742
\ No newline at end of file
743
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment