diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-09-17 02:46:54 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-09-17 02:46:54 +0000 |
commit | e2a2bd265910689c40e473e9f80c871fa3790075 (patch) | |
tree | 8a8d0eb93aa59dc057df278b36e11204596fd114 /Lib/getpass.py | |
parent | 6741edcb39a51662b54a99254dda658952110389 (diff) | |
download | cpython-e2a2bd265910689c40e473e9f80c871fa3790075.tar.gz |
kill bare except
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r-- | Lib/getpass.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |