summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-10 15:42:02 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-10 15:42:02 (GMT)
commit6274fff287bb084f9511dd4c65c3898427f7c96d (patch)
treedf99959c9786c03076084ef7d7933b53876b4efa
parent9c673f35d2f420ebcc8bc6e5c7f946722d4329aa (diff)
downloadcpython-6274fff287bb084f9511dd4c65c3898427f7c96d.zip
cpython-6274fff287bb084f9511dd4c65c3898427f7c96d.tar.gz
cpython-6274fff287bb084f9511dd4c65c3898427f7c96d.tar.bz2
Fix an unqualified except:.
This came out of SF bug #411881.
-rwxr-xr-xLib/mimify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimify.py b/Lib/mimify.py
index c856910..3f0eeb9 100755
--- a/Lib/mimify.py
+++ b/Lib/mimify.py
@@ -448,7 +448,7 @@ if __name__ == '__main__' or (len(sys.argv) > 0 and sys.argv[0] == 'mimify'):
elif o == '-l':
try:
MAXLEN = int(a)
- except:
+ except (ValueError, OverflowError):
print usage
sys.exit(1)
elif o == '-b':