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 > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 02-17-2009, 02: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 12:24 AM.

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