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): ...@@ -19,7 +19,7 @@ def getRssDataAsDict(self, url, username=None, password=None):
# set shorter timeouts and revert default at enf of read # set shorter timeouts and revert default at enf of read
default_timeout = socket.getdefaulttimeout() default_timeout = socket.getdefaulttimeout()
socket.setdefaulttimeout(10.0) socket.setdefaulttimeout(60.0)
d = feedparser.parse(url, handlers=handlers) d = feedparser.parse(url, handlers=handlers)
socket.setdefaulttimeout(default_timeout) socket.setdefaulttimeout(default_timeout)
......
742 743
\ No newline at end of file \ 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