From: unknown Date: Wed, 4 Jul 2001 07:07:33 +0000 (+0000) Subject: Clean up a bare except: clause. X-Git-Tag: v2.2a3~1351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67bbd7a7734b1c9b11abb6e627ce79fa48e1dbef;p=thirdparty%2FPython%2Fcpython.git Clean up a bare except: clause. --- diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 14fd2a8cec06..3a022244ff83 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -74,7 +74,7 @@ class Message: # (and then assume seek() works, too) try: fp.tell() - except: + except (AttributeError, IOError): seekable = 0 else: seekable = 1