aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-05-09 11:35:22 +0100
committerGravatar GitHub <[email protected]>2021-05-09 11:35:22 +0100
commit5add89c563405cc184da60fe1b944a5a2260d949 (patch)
treec02ed1e1d8dae762c5642b16887595f738b8c328
parentFix minor grammer issues with metabase comments (diff)
Update warn to warning, due to deprecation
This commit also includes a minor docstring change Co-authored-by: Numerlor <[email protected]>
-rw-r--r--bot/exts/moderation/metabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/metabase.py b/bot/exts/moderation/metabase.py
index 465242910..c40b6b7e9 100644
--- a/bot/exts/moderation/metabase.py
+++ b/bot/exts/moderation/metabase.py
@@ -116,7 +116,7 @@ class Metabase(Cog):
except ClientResponseError as e:
if e.status == 403:
# User doesn't have access to the given question
- log.warn(f"Failed to auth with Metabase for question {question_id}.")
+ log.warning(f"Failed to auth with Metabase for question {question_id}.")
await ctx.send(f":x: {ctx.author.mention} Failed to auth with Metabase for that question.")
else:
# User credentials are invalid, or the refresh failed.
@@ -157,7 +157,7 @@ class Metabase(Cog):
def cog_unload(self) -> None:
"""Cancel the init task and scheduled tasks."""
- # It's important to wait for init_taskto be cancelled before cancelling scheduled
+ # It's important to wait for init_task to be cancelled before cancelling scheduled
# tasks. Otherwise, it's possible for _session_scheduler to schedule another task
# after cancel_all has finished, despite _init_task.cancel being called first.
# This is cause cancel() on its own doesn't block until the task is cancelled.