aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/getpass.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r--Lib/getpass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index ed9bc5901df..6ec6c78824b 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -164,7 +164,7 @@ try:
except (ImportError, AttributeError):
try:
import msvcrt
- except ModuleNotFoundError:
+ except ImportError:
getpass = fallback_getpass
else:
getpass = win_getpass