mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 18:20:11 +00:00
Don't error if no log channel defined
This commit is contained in:
parent
53b23e1e9b
commit
121f8ab8c3
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ def run():
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_error(event_name, *args, **kwargs):
|
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:
|
if not log_channel_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue