Re: [PATCH] Don't crash if losetup doesn't know anything about a device. (#662513)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 13, 2010 at 11:34:04AM -0600, David Lehman wrote:
> ---
>  pyanaconda/storage/devicelibs/loop.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/pyanaconda/storage/devicelibs/loop.py b/pyanaconda/storage/devicelibs/loop.py
> index e0dc4f7..4ed52e4 100644
> --- a/pyanaconda/storage/devicelibs/loop.py
> +++ b/pyanaconda/storage/devicelibs/loop.py
> @@ -57,7 +57,7 @@ def get_device_path(name):
>          start = buf.index("(") + 1
>          end = buf.rindex(")")
>          path = buf[start:end]
> -    except IndexError:
> +    except (IndexError, ValueError):
>          path = ""
>  
>      log.debug("get_device_path(%s) got '%s'" % (name, path))
> -- 
> 1.7.2.3

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpQR3_GWMhmU.pgp
Description: PGP signature

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux