diff options
author | Guido van Rossum <guido@python.org> | 2001-04-10 15:42:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-10 15:42:02 (GMT) |
commit | 6274fff287bb084f9511dd4c65c3898427f7c96d (patch) | |
tree | df99959c9786c03076084ef7d7933b53876b4efa /Lib/mimify.py | |
parent | 9c673f35d2f420ebcc8bc6e5c7f946722d4329aa (diff) | |
download | cpython-6274fff287bb084f9511dd4c65c3898427f7c96d.zip cpython-6274fff287bb084f9511dd4c65c3898427f7c96d.tar.gz cpython-6274fff287bb084f9511dd4c65c3898427f7c96d.tar.bz2 |
Fix an unqualified except:.
This came out of SF bug #411881.
Diffstat (limited to 'Lib/mimify.py')
-rwxr-xr-x | Lib/mimify.py | 2 |
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': |