mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +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
|
||||
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…
Add table
Add a link
Reference in a new issue