aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/cloudflare/zones.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-07-27 23:31:29 +0100
committerGravatar GitHub <[email protected]>2021-07-27 23:31:29 +0100
commit46aff6c262c3f8ec8ff54db6b32f31b5ec97ef7e (patch)
tree1c4775a8bee693f56e6ef07eab3b2aa332814a87 /arthur/exts/cloudflare/zones.py
parentremove quotes from black profile (diff)
parentMigrate to discord.py v2.0 (diff)
Merge branch 'main' into patch-1
Diffstat (limited to 'arthur/exts/cloudflare/zones.py')
-rw-r--r--arthur/exts/cloudflare/zones.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py
index 564dd2e..457efc5 100644
--- a/arthur/exts/cloudflare/zones.py
+++ b/arthur/exts/cloudflare/zones.py
@@ -21,9 +21,7 @@ class Zones(commands.Cog):
@zones.command(name="purge")
async def purge(
- self,
- ctx: commands.Context,
- zone_name: Optional[str] = "pythondiscord.com"
+ self, ctx: commands.Context, zone_name: Optional[str] = "pythondiscord.com"
) -> None:
"""Command to clear the Cloudflare cache of the specified zone."""
pydis_zones = await zones.list_zones(zone_name)
@@ -38,10 +36,7 @@ class Zones(commands.Cog):
if errors := purge_attempt_response["errors"]:
for error in errors:
description_content += f"`{error['code']}`: {error['message']}\n"
- message = generate_error_message(
- description=description_content,
- emote=":x:"
- )
+ message = generate_error_message(description=description_content, emote=":x:")
await ctx.send(message)