Message121377
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 |
|
Date |
User |
Action |
Args |
2010-11-17 19:16:51 | srid | set | recipients:
+ srid |
2010-11-17 19:16:51 | srid | set | messageid: <1290021411.01.0.745718910126.issue10447@psf.upfronthosting.co.za> |
2010-11-17 19:16:49 | srid | link | issue10447 messages |
2010-11-17 19:16:49 | srid | create | |
|