From 0c214c21b9bbb1b7c6613e4649522190cad51709 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Wed, 18 Jul 2012 17:06:06 -0500 Subject: [PATCH 1/6] Catch exceptions when trying to remove devices from libparted's cache. --- pyanaconda/storage/deviceaction.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pyanaconda/storage/deviceaction.py b/pyanaconda/storage/deviceaction.py index b16573a..617d8b2 100644 --- a/pyanaconda/storage/deviceaction.py +++ b/pyanaconda/storage/deviceaction.py @@ -288,7 +288,10 @@ class ActionDestroyDevice(DeviceAction): # Make sure libparted does not keep cached info for this device # and returns it when we create a new device with the same name if self.device.partedDevice: - self.device.partedDevice.removeFromCache() + try: + self.device.partedDevice.removeFromCache() + except Exception: + pass def requires(self, action): """ Return True if self requires action. -- 1.7.7.6