This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srid
Recipients srid
Date 2010-11-17.19:16:49
SpamBayes Score 3.1831502e-07
Marked as misclassified No
Message-id <1290021411.01.0.745718910126.issue10447@psf.upfronthosting.co.za>
In-reply-to
Content
It appears that there is no base class (zipfile.ZipError) for zipfile errors. Maybe there should be? At the moment, I do:

try:
   [...]
except zipfile.BadZipFile, zipfile.LargeZipFile:
   [...]

.. which is of course unreliable. There is no guarantee that a new exception class will not be added to zipfile (thus necessitating me to change my code). Better to have a single base class - zipfile.ZipError similar to TarError http://docs.python.org/library/tarfile.html#tarfile.TarError
History
Date User Action Args
2010-11-17 19:16:51sridsetrecipients: + srid
2010-11-17 19:16:51sridsetmessageid: <1290021411.01.0.745718910126.issue10447@psf.upfronthosting.co.za>
2010-11-17 19:16:49sridlinkissue10447 messages
2010-11-17 19:16:49sridcreate