Kaydet (Commit) 4d714cbb authored tarafından Benjamin Peterson's avatar Benjamin Peterson

kill bare except

üst aa2adc82
...@@ -51,7 +51,7 @@ def unix_getpass(prompt='Password: ', stream=None): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment