Skip to content

Commit

Permalink
Fix exception reference in missing_compiler_executable. Ref #225. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 3, 2024
1 parent 08699b6 commit 3ff7b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def missing_compiler_executable(cmd_names=[]): # pragma: no cover
# MSVC has no executables, so check whether initialization succeeds
try:
compiler.initialize()
except errors.PlatformError:
except errors.DistutilsPlatformError:
return "msvc"
for name in compiler.executables:
if cmd_names and name not in cmd_names:
Expand Down

0 comments on commit 3ff7b64

Please sign in to comment.