summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-17 02:46:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-17 02:46:54 (GMT)
commit4d714cbbf1fff1711a60bd6d256bbf0e12491e09 (patch)
tree473bd62c29812aaaf08e6dbdea80026790132747 /Lib
parentaa2adc828a0583ee472d42a3b6a8964c822c7ee2 (diff)
downloadcpython-4d714cbbf1fff1711a60bd6d256bbf0e12491e09.zip
cpython-4d714cbbf1fff1711a60bd6d256bbf0e12491e09.tar.gz
cpython-4d714cbbf1fff1711a60bd6d256bbf0e12491e09.tar.bz2
kill bare except
Diffstat (limited to 'Lib')
-rw-r--r--Lib/getpass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 05e9b72..9a1273c 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: