Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
# os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "0"
###

# Discord sometimes grants a superset of the requested OAuth scopes (e.g. it has
# started including "applications.commands" alongside "identify email guilds.join"
# now that the bot registers slash commands). oauthlib treats any scope mismatch
# as fatal by default, so relax that check rather than 500ing on a harmless extra
# scope. https://github.com/requests/requests-oauthlib/issues/380
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = "1"

if Settings().loglevel:
logging.basicConfig(
level=getattr(logging, Settings().loglevel.upper()),
Expand Down