diff --git a/Lib/mimify.py b/Lib/mimify.py index c856910b61f..3f0eeb9a3bc 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':