python/elearning.py: fix dumb mistake
This commit is contained in:
parent
cfa3c06dbb
commit
3acadee72f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user