From 946f17d8e376ddc5d18cdc41a8de17a03d5b8a3a Mon Sep 17 00:00:00 2001 From: pipcat Date: Thu, 19 Jul 2018 19:29:16 +0200 Subject: [PATCH] No mostrar en log error controlado --- plugin.video.alfa/platformcode/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin.video.alfa/platformcode/config.py b/plugin.video.alfa/platformcode/config.py index 04fc22c9..278bde5c 100644 --- a/plugin.video.alfa/platformcode/config.py +++ b/plugin.video.alfa/platformcode/config.py @@ -393,6 +393,7 @@ def verify_directories_created(): # Buscamos el archivo addon.xml del skin activo skindir = filetools.join(xbmc.translatePath("special://home"), 'addons', xbmc.getSkinDir(), 'addon.xml') + if not os.path.isdir(skindir): return # No hace falta mostrar error en el log si no existe la carpeta # Extraemos el nombre de la carpeta de resolución por defecto folder = "" data = filetools.read(skindir)