kill bare except

This commit is contained in:
Benjamin Peterson 2009-09-17 02:46:54 +00:00
parent aa2adc828a
commit 4d714cbbf1
1 changed files with 1 additions and 1 deletions

View File

@ -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: