From f14aaecef5b5fa76646960b826b81e2fcdc6f48d Mon Sep 17 00:00:00 2001 From: blino Date: Fri, 29 May 2020 21:40:15 +0200 Subject: fix crash when hal is not running (#3032) --- draksnapshot-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draksnapshot-config') diff --git a/draksnapshot-config b/draksnapshot-config index 3558037..127a762 100755 --- a/draksnapshot-config +++ b/draksnapshot-config @@ -112,7 +112,7 @@ my $where; if (!$backup_directory || $::testing) { my $dbus = get_system_bus(); if ($dbus) { - my @discs = map { $_->GetProperty('volume.mount_point') } find_removable_volumes($dbus); + my @discs = map { $_->GetProperty('volume.mount_point') } eval { find_removable_volumes($dbus) }; $backup_directory = $discs[0]; } } -- cgit v1.2.1