kill bare except

This commit is contained in:
Benjamin Peterson 2009-09-17 02:46:54 +00:00
parent aa2adc828a
commit 4d714cbbf1

View file

@ -51,7 +51,7 @@ def unix_getpass(prompt='Password: ', stream=None):
# If that fails, see if stdin can be controlled. # If that fails, see if stdin can be controlled.
try: try:
fd = sys.stdin.fileno() fd = sys.stdin.fileno()
except: except (AttributeError, ValueError):
passwd = fallback_getpass(prompt, stream) passwd = fallback_getpass(prompt, stream)
input = sys.stdin input = sys.stdin
if not stream: if not stream: