Make webhook_url KeyError more helpful

This commit is contained in:
2022-01-03 20:41:33 +01:00
parent a993abce39
commit 576b38fa4f

View File

@ -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."
)