FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 02-17-2009, 03:48 PM
Hans de Goede
 
Default PATCH: pyblock: pyparted now trhows an IOException when it does not recognize the part. table

pyparted now trhows an IOException when it does not recognize the part. table,
so catch that. This fixes the activation of dmraid sets with the new pyparted
---
device.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/device.py b/device.py
index 2d26b52..1c0d7f3 100644
--- a/device.py
+++ b/device.py
@@ -758,7 +758,7 @@ class RaidSet:
dev.open()
try:
disk = _parted.Disk(device=dev)
- except _parted.DiskException, msg:
+ except (_parted.DiskException,_parted.IOException), msg:
dev.close()
del dev
return
--
1.6.1.3

_______________________________________________
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 04:24 PM.

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