python/elearning.py: fix dumb mistake

This commit is contained in:
Michele Guerini Rocco 2020-11-24 14:18:44 +01:00
parent cfa3c06dbb
commit 3acadee72f
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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):