website/integrations: Update discord integration role check expression - fix errors. (#5723)

* Fix spurious curly close bracket.

Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>

* Remove spurious whitespace.

Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>

---------

Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
This commit is contained in:
Aterfax 2023-05-22 21:06:03 +01:00 committed by GitHub
parent 9f9a71f3d6
commit 36340d0960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ if "code" in guild_member_object:
if guild_member_object['code'] == 10004: if guild_member_object['code'] == 10004:
ak_message(f"User is not a member of {GUILD_NAME_STRING}.") ak_message(f"User is not a member of {GUILD_NAME_STRING}.")
else: else:
ak_create_event("discord_error", source=context['source'], code= guild_member_object['code']}) ak_create_event("discord_error", source=context['source'], code=guild_member_object['code'])
ak_message("Discord API error, try again later.") ak_message("Discord API error, try again later.")
# Policy does not match if there is any error. # Policy does not match if there is any error.
return False return False