summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-06-29 13:05:09 +0000
committerOlivier Blin <oblin@mandriva.com>2009-06-29 13:05:09 +0000
commitf74bba9e0c827683fc1405c4e41c95bb5f154ec8 (patch)
tree7c842a83548b604f57dec0df191ddd9514340361 /lib
parent9ddd445f2d3067a214cfbeb1f09a684deb95db9c (diff)
downloaddraklive-f74bba9e0c827683fc1405c4e41c95bb5f154ec8.tar
draklive-f74bba9e0c827683fc1405c4e41c95bb5f154ec8.tar.gz
draklive-f74bba9e0c827683fc1405c4e41c95bb5f154ec8.tar.bz2
draklive-f74bba9e0c827683fc1405c4e41c95bb5f154ec8.tar.xz
draklive-f74bba9e0c827683fc1405c4e41c95bb5f154ec8.zip
do not crash if index can not be found
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index bdf4834..d75eeb4 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -48,7 +48,7 @@ sub get_media_source_for_nash {
sub find_partition_index {
my ($media, $mntpoint) = @_;
- find_index { $_->{mntpoint} eq $mntpoint } @{$media->{partitions}};
+ eval { find_index { $_->{mntpoint} eq $mntpoint } @{$media->{partitions}} };
}
1;