Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jun 25, 2024
1 parent f8670cb commit 345e5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/lib/agama/software/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def list_disks
# we need only the kernel device name and the label
output = `lsblk --paths --json --output kname,label`
JSON.parse(output)
rescue RuntimeError => e
rescue StandardError => e
logger.error "ERROR: Cannot read disk devices: #{e}"
{}
end
Expand Down

0 comments on commit 345e5bf

Please sign in to comment.