Compare commits

..

No commits in common. "f50fe88a14f38cd4e40745f3c71f4514eecfd2d1" and "d59e170e8bb5b53ce4ff2eb2af19c3c379f632e7" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -43,8 +43,6 @@ class Linux(Plugin):
res = requests.get(self.KERNEL_FEED, timeout=10).json() res = requests.get(self.KERNEL_FEED, timeout=10).json()
except requests.exceptions.RequestException: except requests.exceptions.RequestException:
return '\x02[Kernel]\x02 Error fetching kernel.org releases' return '\x02[Kernel]\x02 Error fetching kernel.org releases'
except requests.exceptions.JSONDecodeError:
return '\x02[Kernel]\x02 Error decoding kernel.org releases'
# Make list of releases # Make list of releases
releases = [] releases = []

View File

@ -39,7 +39,7 @@ class URLInfo(Plugin):
if size >= self.SIZE_LIMIT: if size >= self.SIZE_LIMIT:
return return
bytes_io.write(chunk) bytes_io.write(chunk)
except requests.exceptions.RequestException: except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
return return
bytes_io.seek(0) bytes_io.seek(0)