rrs_upgrade_history: show text of any exception that blocks parsing

If an exception occurs during parsing, let's actually see what kind of
exception it was in the output.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-03-27 16:06:09 +13:00
parent 0947ec0a65
commit fb332736c6

View File

@ -109,9 +109,9 @@ def _create_upgrade(recipe_data, layerbranch, ct, title, info, logger, initial=F
_save_upgrade(recipe, pv, ct, title, info, logger)
except KeyboardInterrupt:
raise
except:
except Exception as e:
logger.error("%s: fail to detect upgrade (%s -> %s)" \
" in ct %s." % (pn, prev_pv, pv, ct))
" in ct %s: %s" % (pn, prev_pv, pv, ct, str(e)))
"""