From c87583271817f1b867709a1ec788a186f32cf23e Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Wed, 19 Oct 2016 14:54:11 +0000 Subject: [PATCH] Generalize to all exceptions. --- .../vendor-config-onl/src/python/onl/install/BaseInstall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py b/packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py index cf3f299e..27286acc 100644 --- a/packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py +++ b/packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py @@ -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')