=== modified file 'apport/crashdb_impl/launchpad.py' --- apport/crashdb_impl/launchpad.py 2009-08-05 16:39:49 +0000 +++ apport/crashdb_impl/launchpad.py 2009-08-20 19:22:27 +0000 @@ -259,7 +259,10 @@ 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: + raise Exception, 'There was an error with attachment ' + attachment.filename else: raise Exception, 'Unknown attachment type: ' + attachment.filename return report