summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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;