mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 18:23:44 +02:00
Dump envvars when failing to find one
This commit is contained in:
parent
a02ca85c20
commit
63cb92bb35
1 changed files with 6 additions and 1 deletions
|
|
@ -134,7 +134,12 @@ def g(k):
|
|||
try:
|
||||
return env[k]
|
||||
except KeyError:
|
||||
return env[k.lower()]
|
||||
try:
|
||||
return env[k.lower()]
|
||||
except KeyError:
|
||||
for k, v in env.items():
|
||||
print(f'{k}={v}', file=sys.stderr)
|
||||
raise
|
||||
|
||||
return {
|
||||
k: g(k)
|
||||
|
|
|
|||
Loading…
Reference in a new issue