From 49350af92d909bc6562ea7ddeadb327aa52bc181 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 24 Dec 2021 16:37:27 +0300 Subject: [PATCH] FIX: added exception when utilities can't get MType of iso --- pym/install/distr.py | 2 ++ 1 file changed, 2 insertions(+) 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: