]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clean up a bare except: clause.
authorunknown <tools@python.org>
Wed, 4 Jul 2001 07:07:33 +0000 (07:07 +0000)
committerunknown <tools@python.org>
Wed, 4 Jul 2001 07:07:33 +0000 (07:07 +0000)
Lib/rfc822.py

index 14fd2a8cec069f5fca9df65cabbda2ffd2e313d5..3a022244ff8341a9e8cfe6c13e352ddcfd34cac6 100644 (file)
@@ -74,7 +74,7 @@ class Message:
             # (and then assume seek() works, too)
             try:
                 fp.tell()
-            except:
+            except (AttributeError, IOError):
                 seekable = 0
             else:
                 seekable = 1