From 157656cec9ecf07ba0db20ba2ecd7d889d3555b0 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 5 Sep 2013 00:30:04 +0100 Subject: [PATCH] update.py: hide DeprecationWarnings These are just annoying if the script is called from a cron job. Signed-off-by: Paul Eggleton --- layerindex/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layerindex/update.py b/layerindex/update.py index 096c23e..89f41f9 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -20,6 +20,9 @@ from distutils.version import LooseVersion import utils import recipeparse +import warnings +warnings.filterwarnings("ignore", category=DeprecationWarning) + logger = utils.logger_create('LayerIndexUpdate') # Ensure PythonGit is installed (buildhistory_analysis needs it)