--- launchpad.py 2010-03-17 15:37:27.000000000 +0100 +++ launchpad.py.new 2010-03-17 15:40:52.000000000 +0100 @@ -274,7 +274,15 @@ if ext == '.txt': report[key] = attachment.read() elif ext == '.gz': - report[key] = gzip.GzipFile(fileobj=attachment).read()#TODO: is this the best solution? + try: + report[key] = gzip.GzipFile(fileobj=attachment).read()#TODO: is this the best solution? + except IOError, e: + if e.errno is None: + if 'CRC check failed' in repr(e): + print >> sys.stderr, "** An error occurred with attachment '%s'\n\t%s" % (attachment.filename, repr(e)) + continue + else: + raise else: raise Exception, 'Unknown attachment type: ' + attachment.filename return report