Generalize to all exceptions.

This commit is contained in:
Jeffrey Townsend
2016-10-19 14:54:11 +00:00
committed by Carl D. Roth
parent fad2b5cd82
commit c875832718

View File

@@ -692,9 +692,9 @@ class UbootInstaller(SubprocessMixin, Base):
except PartedException as ex:
self.log.error("cannot get partition table from %s: %s",
self.device, str(ex))
except AttributeError as ex:
self.log.error("XXX cannot get partition table from %s: %s",
self.device, str(ex))
except Error as ex:
self.log.exception("cannot get partition table from %s"
self.device)
self.log.info("creating msdos label on %s")
self.partedDisk = parted.freshDisk(self.partedDevice, 'msdos')