FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Edubuntu User

 
 
LinkBack Thread Tools
 
Old 06-29-2010, 07:46 PM
David Cantrell
 
Default Catch DeviceNotFoundError in cleardisks (#607661)

---
iw/cleardisks_gui.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/iw/cleardisks_gui.py b/iw/cleardisks_gui.py
index dd720d4..926f613 100644
--- a/iw/cleardisks_gui.py
+++ b/iw/cleardisks_gui.py
@@ -166,9 +166,12 @@ class ClearDisksWindow (InstallWindow):
if hasattr(d, "wwid"):
ident = d.wwid
else:
- ident = deviceNameToDiskByPath(d.name)
- if ident.startswith("/dev/disk/by-path/"):
- ident = ident.replace("/dev/disk/by-path/", "")
+ try:
+ ident = deviceNameToDiskByPath(d.name)
+ if ident.startswith("/dev/disk/by-path/"):
+ ident = ident.replace("/dev/disk/by-path/", "")
+ except DeviceNotFoundError:
+ ident = d.name

self.store.append(None, (d,
leftVisible, True, False,
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org