From 3acadee72fa9ba6c29124ee898bb26851347514e Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 24 Nov 2020 14:18:44 +0100 Subject: [PATCH] python/elearning.py: fix dumb mistake --- python/elearning.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/elearning.py b/python/elearning.py index 8c90510..1fbb355 100755 --- a/python/elearning.py +++ b/python/elearning.py @@ -98,9 +98,8 @@ def getenv(var, fallback): Read an environment variable or use a call a function for a default value. ''' - val = os.getenv(var) - if val is None: - return fallback() + val = os.environ.get(var) + return fallback() if val is None else val def open_course(url, args):