diff options
| author | 2021-05-10 00:27:25 +0300 | |
|---|---|---|
| committer | 2021-05-10 00:27:25 +0300 | |
| commit | fb556c6407bab3ef078bc23620074ba206fb7ad8 (patch) | |
| tree | def48537b6784d2176d0f2739b7f00998b366174 /bot | |
| parent | Merge pull request #569 from RohanJnr/reddit_migration (diff) | |
Fixes Expected Token Revoke Status Code
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/reddit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/reddit.py b/bot/exts/evergreen/reddit.py index 916563ac..e57fa2c0 100644 --- a/bot/exts/evergreen/reddit.py +++ b/bot/exts/evergreen/reddit.py @@ -174,7 +174,7 @@ class Reddit(Cog): } ) - if response.status == 204 and response.content_type == "application/json": + if response.status in [200, 204] and response.content_type == "application/json": self.access_token = None else: log.warning(f"Unable to revoke access token: status {response.status}.") |