Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix incorrect error message (fix for the bug coming next)
  • Loading branch information
zooba committed Sep 4, 2020
commit bdc676c922d43601a4e9aab17bf4dea299922d0e
4 changes: 2 additions & 2 deletions Lib/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ def is_python_build(check_home=False):
def _subst_vars(s, local_vars):
try:
return s.format(**local_vars)
except KeyError:
except KeyError as var:
try:
return s.format(**os.environ)
except KeyError as var:
except KeyError:
raise AttributeError('{%s}' % var) from None

def _extend_dict(target_dict, other_dict):
Expand Down