From 121f8ab8c36ee1a92772a10f5a9c9721abe192fc Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 10 Dec 2018 20:24:14 +0100 Subject: [PATCH] Don't error if no log channel defined --- src/pluralkit/bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/__init__.py b/src/pluralkit/bot/__init__.py index e85122ac..042c8497 100644 --- a/src/pluralkit/bot/__init__.py +++ b/src/pluralkit/bot/__init__.py @@ -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