mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +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.
|
# 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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue