Compare commits

...
2 Commits
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -43,6 +43,8 @@ class Linux(Plugin):
res = requests.get(self.KERNEL_FEED, timeout=10).json()
except requests.exceptions.RequestException:
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
releases = []
+1 -1
View File
@@ -39,7 +39,7 @@ class URLInfo(Plugin):
if size >= self.SIZE_LIMIT:
return
bytes_io.write(chunk)
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
except requests.exceptions.RequestException:
return
bytes_io.seek(0)