From e2a2bd265910689c40e473e9f80c871fa3790075 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 17 Sep 2009 02:46:54 +0000 Subject: kill bare except --- Lib/getpass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/getpass.py') diff --git a/Lib/getpass.py b/Lib/getpass.py index 05e9b72a75..9a1273cbc8 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -51,7 +51,7 @@ def unix_getpass(prompt='Password: ', stream=None): # If that fails, see if stdin can be controlled. try: fd = sys.stdin.fileno() - except: + except (AttributeError, ValueError): passwd = fallback_getpass(prompt, stream) input = sys.stdin if not stream: -- cgit v1.2.1