From 9f45d64201e66d6b52a573fedb415a62cf942e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Thu, 12 Feb 2015 21:27:23 -0600 Subject: [PATCH] scripts/rrs_update/recipe_upstream.py: Show traceback when except getting upstream version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aníbal Limón --- scripts/rrs_update/recipe_upstream.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/rrs_update/recipe_upstream.py b/scripts/rrs_update/recipe_upstream.py index af3daed..b89a408 100644 --- a/scripts/rrs_update/recipe_upstream.py +++ b/scripts/rrs_update/recipe_upstream.py @@ -182,8 +182,12 @@ def get_upstream_info_thread(envdata, result, recipe_mutex, result_mutex, logger recipe_result['type'] = 'A' recipe_result['date'] = datetime.utcnow() except Exception as inst: + import sys, traceback logger.warn("get_upstream_info, recipe %s, pv %s, unexpected error: %s" % (recipe.pn, recipe_pv, repr(inst))) + print '-' * 60 + traceback.print_exc(file=sys.stdout) + print '-' * 60 recipe_result['date'] = datetime.utcnow() else: