[Python-checkins] r74860 - python/trunk/Lib/getpass.py
benjamin.peterson
python-checkins at python.org
Thu Sep 17 04:46:54 CEST 2009
Author: benjamin.peterson
Date: Thu Sep 17 04:46:54 2009
New Revision: 74860
Log:
kill bare except
Modified:
python/trunk/Lib/getpass.py
Modified: python/trunk/Lib/getpass.py
==============================================================================
--- python/trunk/Lib/getpass.py (original)
+++ python/trunk/Lib/getpass.py Thu Sep 17 04:46:54 2009
@@ -51,7 +51,7 @@
# 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:
More information about the Python-checkins
mailing list