Commit 0c402729 authored by Felipe Borges's avatar Felipe Borges

media-manager: Don't enumerate unexisting installer medias

Fixes #399
parent b7f31d81
......@@ -114,7 +114,9 @@ private class Boxes.MediaManager : Object {
var media = yield create_installer_media_for_path (path);
list.append (media);
if (media != null) {
list.append (media);
}
} catch (GLib.Error error) {
warning ("Failed to get information on device '%s': %s. Ignoring..", path, error.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment