diff --git a/pym/install/distr.py b/pym/install/distr.py index 5223951..f75ca0e 100644 --- a/pym/install/distr.py +++ b/pym/install/distr.py @@ -1679,6 +1679,8 @@ class IsoDistributive(Distributive): self._makeDirectory(directory) tf = typeFile(magic=MAGIC_COMPRESS | MAGIC_SYMLINK | MAGIC_CONTINUE) ftype = tf.getMType(file) + if ftype is None: + raise DistributiveError(_("Failed to get Mtype of the iso file")) if "block special" in ftype: mopts = "-o ro" else: