Merge pull request #914 from auouymous/no-stack-for-dns-and-timeout-errors

Disable stack trace for network errors from requests and urllib3.
This commit is contained in:
Eric Le Lay 2020-11-30 21:01:35 +01:00 committed by GitHub
commit 2019d83edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,8 @@ import time
import urllib.parse
import dbus.service
import requests.exceptions
import urllib3.exceptions
import gpodder
from gpodder import (common, download, extensions, feedcore, my, opml, player,
@ -2652,6 +2654,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
gpodder.feedcore.NotFound,
gpodder.feedcore.InternalServerError,
gpodder.feedcore.UnknownStatusCode,
requests.exceptions.ConnectionError,
requests.exceptions.RetryError,
urllib3.exceptions.MaxRetryError,
urllib3.exceptions.ReadTimeoutError,
]))
updated_channels.append(channel)