Don't error if no log channel defined
This commit is contained in:
parent
53b23e1e9b
commit
121f8ab8c3
@ -98,7 +98,7 @@ def run():
|
||||
|
||||
@client.event
|
||||
async def on_error(event_name, *args, **kwargs):
|
||||
log_channel_id = os.environ["LOG_CHANNEL"]
|
||||
log_channel_id = os.environ.get("LOG_CHANNEL")
|
||||
if not log_channel_id:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user