Skip to content

Commit 41d5593

Browse files
committed
Non-master/development branch deployments no longer cause erros to be raised.
1 parent 9d9a609 commit 41d5593

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ however, insignificant breaking changes do not guarantee a major version bump, s
88

99
# v3.8.5
1010

11-
This update is a quick hotfix for a weird behaviour experienced on 1 Feb 2021 where users were not properly cached.
12-
1311
### Added
1412

1513
- `?msglink <message id>`, allows you to obtain channel + message ID for T&S reports. ([GH #2963](https://github.com/kyb3r/modmail/issues/2963), [PR #2964](https://github.com/kyb3r/modmail/pull/2964))
1614

1715
### Fixed
1816

19-
- Non-master/development branch deployments no longer cause erros to be raised.
17+
- Non-master/development branch deployments no longer cause errors to be raised.
2018

2119
# v3.8.4
2220

core/changelog.py

+3
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ async def from_url(cls, bot, url: str = "") -> "Changelog":
180180
if not branch or err:
181181
branch = "master" if not bot.version.is_prerelease else "development"
182182

183+
if branch not in ("master", "development"):
184+
branch = "master"
185+
183186
url = url or f"https://raw.githubusercontent.com/kyb3r/modmail/{branch}/CHANGELOG.md"
184187

185188
async with await bot.session.get(url) as resp:

0 commit comments

Comments
 (0)