Compare commits
2 Commits
d59e170e8b
...
f50fe88a14
Author | SHA1 | Date | |
---|---|---|---|
f50fe88a14 | |||
fa51899a24 |
@ -43,6 +43,8 @@ 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 = []
|
||||||
|
@ -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.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
|
except requests.exceptions.RequestException:
|
||||||
return
|
return
|
||||||
|
|
||||||
bytes_io.seek(0)
|
bytes_io.seek(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user