fix(welcome): Log specific ValueError message
Include the specific error details from ValueError when logging issues in the welcome message process, making debugging easier.
This commit is contained in:
parent
a7cb48e10b
commit
aa43302903
@ -181,9 +181,9 @@ class WelcomeCog(commands.Cog):
|
||||
await channel.send(view=view)
|
||||
log.info(f"Sent welcome message for {member.name} in guild {guild.id}")
|
||||
|
||||
except ValueError:
|
||||
except ValueError as e:
|
||||
log.error(
|
||||
f"Invalid welcome_channel_id '{welcome_channel_id_str}' configured for guild {guild.id}"
|
||||
f"ValueError in WelcomeCog for guild {guild.id}: {e}"
|
||||
)
|
||||
except discord.Forbidden:
|
||||
log.error(
|
||||
|
Loading…
x
Reference in New Issue
Block a user