diff options
-rw-r--r-- | arthur/apis/cloudflare/zones.py | 4 | ||||
-rw-r--r-- | arthur/exts/error_handler/error_handler.py | 3 | ||||
-rw-r--r-- | arthur/exts/kubernetes/deployments.py | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py index e2955f7..a5a81d8 100644 --- a/arthur/apis/cloudflare/zones.py +++ b/arthur/apis/cloudflare/zones.py @@ -10,7 +10,7 @@ CF_TOKEN = CONFIG.cloudflare_token async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]: - endpoint = f"https://api.cloudflare.com/client/v4/zones" + endpoint = "https://api.cloudflare.com/client/v4/zones" request_headers = {"X-Auth-User-Service-Key": CF_TOKEN} if zone_name is not None: @@ -27,7 +27,7 @@ async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]: async def purge_zone(zone_identifier: str) -> dict: - endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}/purge_cache?purge_everything=true" + endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}/purge_cache?purge_everything=true" # noqa: E501 request_headers = {"X-Auth-User-Service-Key": CF_TOKEN} async with aiohttp.ClientSession() as session: diff --git a/arthur/exts/error_handler/error_handler.py b/arthur/exts/error_handler/error_handler.py index 673fbc7..2a61f40 100644 --- a/arthur/exts/error_handler/error_handler.py +++ b/arthur/exts/error_handler/error_handler.py @@ -49,7 +49,8 @@ class ErrorHandler(Cog): await ctx.send( generate_error_message( description=( - f"Unknown exception occurred: `{error.__class__.__name__}:" f" {error}`" + f"Unknown exception occurred: `{error.__class__.__name__}:" + f" {error}`" ) ) ) diff --git a/arthur/exts/kubernetes/deployments.py b/arthur/exts/kubernetes/deployments.py index dc1284f..c41db32 100644 --- a/arthur/exts/kubernetes/deployments.py +++ b/arthur/exts/kubernetes/deployments.py @@ -141,7 +141,7 @@ class Deployments(commands.Cog): content=generate_error_message( description=f"Unexpected error occurred, error code {e.status}" ), - ephemeral=False, + ephemeral=False ) else: description = ( @@ -150,7 +150,7 @@ class Deployments(commands.Cog): ) await interaction.respond( content=description, - ephemeral=False, + ephemeral=False ) for component in components.components: |