From ba530b5cd0d6ed515fe411220929eee41fe1b977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 9 Jun 2021 22:33:45 +0300 Subject: [PATCH] Fix error reporting for getenv_in --- pinecrypt/server/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinecrypt/server/const.py b/pinecrypt/server/const.py index 35ae86c..4979606 100644 --- a/pinecrypt/server/const.py +++ b/pinecrypt/server/const.py @@ -64,7 +64,7 @@ except ValueError: # If FQDN is not configured def getenv_in(key, default, *vals): val = os.getenv(key, default) if val not in (default,) + vals: - raise ValueError("Got %s for %s, expected one of %s" % (repr(val), key, vals)) + raise ValueError("Got %s for %s, expected one of %s" % (repr(val), key, (default,) + vals)) return val