From 2bb1d2a55916ba2c5f70739d91057a5e0b2d791b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 26 Feb 2021 09:08:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=B2=D1=8B=D1=87=D0=B8=D1=81=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20Kernel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В некоторых случаях вместо описания типа файла возвращается None --- pym/install/variables/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/install/variables/kernel.py b/pym/install/variables/kernel.py index 4a57b01..4f7ab6f 100644 --- a/pym/install/variables/kernel.py +++ b/pym/install/variables/kernel.py @@ -341,7 +341,7 @@ class KernelHelper(VariableInterface): filesWithType = map(lambda x: (x, ftype(x)), filter(path.exists, filelist)) - return filter(lambda x: descr in x[1], filesWithType) + return filter(lambda x: x[1] and descr in x[1], filesWithType) def getInitrdFiles(self, pathname): filelist = map(lambda x: path.join(pathname, x), os.listdir(pathname))