mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
replace deprecated logger.warn with logger.warning
This commit is contained in:
1 parent
d68745f624
commit
cf9945f06e
1 file changed
+2
-2
+2
-2
@@ -264,7 +264,7 @@ class Meme(commands.Cog):
|
||||
try:
|
||||
os.remove(temp_file)
|
||||
except (FileNotFoundError, PermissionError):
|
||||
self.bot.logger.warn(f"Failed to remove temporary file {temp_file}")
|
||||
self.bot.logger.warning(f"Failed to remove temporary file {temp_file}")
|
||||
|
||||
@app_commands.checks.bot_has_permissions(attach_files=True)
|
||||
@app_commands.checks.cooldown(1, 60)
|
||||
@@ -298,7 +298,7 @@ class Meme(commands.Cog):
|
||||
try:
|
||||
os.remove(temp_file)
|
||||
except (FileNotFoundError, PermissionError):
|
||||
self.bot.logger.warn(f"Failed to remove temporary file {temp_file}")
|
||||
self.bot.logger.warning(f"Failed to remove temporary file {temp_file}")
|
||||
|
||||
@staticmethod
|
||||
def make_crab(top_text: str, bottom_text: str, user_id: int):
|
||||
|
||||
Reference in new issue
Block a user