kill bare except
This commit is contained in:
parent
aa2adc828a
commit
4d714cbbf1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue