Don't error if no log channel defined

This commit is contained in:
Ske 2018-12-10 20:24:14 +01:00
parent 53b23e1e9b
commit 121f8ab8c3

View File

@ -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