Fix message when SERVE_DOMAIN is missing
This commit is contained in:
@ -17,7 +17,7 @@ load_dotenv()
|
|||||||
try:
|
try:
|
||||||
serve_domain = os.environ["SERVE_DOMAIN"]
|
serve_domain = os.environ["SERVE_DOMAIN"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
sys.exit("discord-embed: Environment variable 'DOMAIN' is missing!")
|
sys.exit("discord-embed: Environment variable 'SERVE_DOMAIN' is missing!")
|
||||||
|
|
||||||
# Remove trailing slash from domain
|
# Remove trailing slash from domain
|
||||||
if serve_domain.endswith("/"):
|
if serve_domain.endswith("/"):
|
||||||
|
Reference in New Issue
Block a user