Skip to content

Commit ca8565b

Browse files
committed
RSS: Don't log tracebacks for HTTP errors
1 parent 3e5291f commit ca8565b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/RSS/plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ def update_feed(self, feed):
364364
feed.url, e)
365365
feed.last_exception = e
366366
return
367+
except http.client.HTTPException as e:
368+
self.log.warning("HTTP error while fetching <%s>: %s",
369+
feed.url, e)
370+
feed.last_exception = e
371+
return
367372
except Exception as e:
368373
self.log.error("Failed to fetch <%s>: %s", feed.url, e)
369374
raise # reraise so @log.firewall prints the traceback

0 commit comments

Comments
 (0)