mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
kill bare except
This commit is contained in:
parent
aa2adc828a
commit
4d714cbbf1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue