mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Specifying the exception
This commit is contained in:
parent
f93afa90d0
commit
9936e76587
2 changed files with 3 additions and 8 deletions
|
|
@ -1,12 +1,7 @@
|
||||||
{
|
{
|
||||||
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
||||||
"versions": {
|
"versions": {
|
||||||
"1.0.18": {
|
"1.0.18": null,
|
||||||
"api_version": 8,
|
|
||||||
"commit_sha": "e42fb09",
|
|
||||||
"released_on": "28-04-2024",
|
|
||||||
"md5sum": "49b240dab5bc0b5adcfa6b807d756053"
|
|
||||||
},
|
|
||||||
"1.0.17": {
|
"1.0.17": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "02530f0",
|
"commit_sha": "02530f0",
|
||||||
|
|
|
||||||
|
|
@ -1407,8 +1407,8 @@ class PluginManager:
|
||||||
self._changelog_setup_in_progress = not bool(self._changelog)
|
self._changelog_setup_in_progress = not bool(self._changelog)
|
||||||
try:
|
try:
|
||||||
full_changelog = await self.get_changelog()
|
full_changelog = await self.get_changelog()
|
||||||
except Exception:
|
except urllib.error.URLError:
|
||||||
full_changelog = 'Could not get ChangeLog'
|
full_changelog = 'Could not get ChangeLog due to Internet Issues'
|
||||||
pattern = rf"### {version} \(\d\d-\d\d-\d{{4}}\)\n(.*?)(?=### \d+\.\d+\.\d+|\Z)"
|
pattern = rf"### {version} \(\d\d-\d\d-\d{{4}}\)\n(.*?)(?=### \d+\.\d+\.\d+|\Z)"
|
||||||
matches = re.findall(pattern, full_changelog, re.DOTALL)
|
matches = re.findall(pattern, full_changelog, re.DOTALL)
|
||||||
if matches:
|
if matches:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue