On raw image do not raise an exception if asked for partitions and the underlying image is not an optical disc.

This commit is contained in:
2019-02-27 00:36:15 +00:00
parent aa45f23711
commit bfe254279c

View File

@@ -110,8 +110,7 @@ namespace DiscImageChef.DiscImages
{ {
get get
{ {
if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc) if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc) return null;
throw new FeatureUnsupportedImageException("Feature not supported by image format");
List<Partition> parts = new List<Partition>(); List<Partition> parts = new List<Partition>();
Partition part = new Partition Partition part = new Partition