From 576b38fa4fa370de2c0961523bfaaec2732194e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Mon, 3 Jan 2022 20:41:33 +0100 Subject: [PATCH] Make webhook_url KeyError more helpful --- discord_embed/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord_embed/settings.py b/discord_embed/settings.py index 5fc6708..dd8d7d9 100644 --- a/discord_embed/settings.py +++ b/discord_embed/settings.py @@ -40,4 +40,6 @@ class Settings: try: webhook_url = os.environ["WEBHOOK_URL"] except KeyError: - sys.exit("discord-embed: Environment variable 'WEBHOOK_URL' is missing!") + sys.exit( + "Environment variable 'WEBHOOK_URL' is missing! You may have to restart your terminal or IDE to set it." + )