Limnoria/plugins
Valentin Lorentz 758f9bee34 RSS: Catch errors from update_feed(), just in case
feedparser should always catch the error, but someone reported it doesn't
catch this error on TLS cert issues:

```
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/plugins/RSS/plugin.py", line 86, in newf
    f(*args, **kwargs)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/plugins/RSS/plugin.py", line 351, in update_feeds
    self.update_feed_if_needed(feed)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/plugins/RSS/plugin.py", line 337, in update_feed_if_needed
    self.update_feed(feed)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/supybot/plugins/RSS/plugin.py", line 311, in update_feed
    d = feedparser.parse(feed.url, etag=feed.etag,
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/feedparser/api.py", line 214, in parse
    data = _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/feedparser/api.py", line 114, in _open_resource
    return http.get(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/home/falso/virtualenv/limnoria/lib/python3.8/site-packages/feedparser/http.py", line 158, in get
    f = opener.open(request)
  File "/usr/lib/python3.8/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 1393, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
```

So let's catch the error just in case, so it doesn't block all other
feeds.
2021-05-28 18:48:35 +02:00
..
Admin Admin: Fix python 3.4 support. 2021-05-25 19:24:21 +02:00
Aka all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Alias all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Anonymous all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Autocomplete all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
AutoMode all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
BadWords all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Channel Channel: Fix Nameerror in @alert. 2021-05-17 18:24:37 +02:00
ChannelLogger all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
ChannelStats all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Conditional all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Config all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Ctcp all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
DDG all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Debug all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Dict all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Dunno all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Factoids all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Fediverse all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Filter all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Format all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Games all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Google all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
GPG all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Hashes all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Herald all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Internet all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Karma all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Lart all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Later all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Limiter all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
LogToIrc all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Math all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
MessageParser all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Misc callbacks, Misc, Relay: Fix when the message prefix is just a nick 2021-05-26 17:50:29 +02:00
MoobotFactoids all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Network Network: Fix IPv6 parsing 2021-05-22 18:51:22 +02:00
News all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
NickAuth all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
NickCapture all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Nickometer all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Note all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Owner all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Plugin all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
PluginDownloader all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Praise all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Protector all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Quote all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
QuoteGrabs all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Relay callbacks, Misc, Relay: Fix when the message prefix is just a nick 2021-05-26 17:50:29 +02:00
Reply all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
RSS RSS: Catch errors from update_feed(), just in case 2021-05-28 18:48:35 +02:00
Scheduler all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
SedRegex SedRegex: Fix NameError in config setup 2021-05-22 18:51:35 +02:00
Seen all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Services Services: Keep per-network state separate 2021-04-27 19:52:58 +02:00
ShrinkUrl all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Status all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
String all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Success all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Time all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Todo all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Topic all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Unix all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
URL all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
User Admin: Fix python 3.4 support. 2021-05-25 19:24:21 +02:00
Utilities all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
Web all plugins: regenerate READMEs 2021-04-22 00:29:15 +02:00
__init__.py Seen: Don't internalize IrcString (again). 2020-06-05 00:41:18 +02:00
messages.pot update messages.pot files && Unix: update l10n-fi. 2014-03-22 12:22:54 +02:00