generic-poky/bitbake/lib/toaster/contrib
Ed Bartosh aa6894a436 bitbake: toaster: fix wrong usage of print_exc and format_exc
First parameter of traceback.print_exc and traceback.format_exc APIs is
a 'limit' - a number of stracktraces to print.

Passing exception object to print_exc or format_exc is incorrect, but
it works in Python 2 and causes printing only one line of traceback.

In Python 3 comparison of integer and exception object throws exception:
TypeError: unorderable types: int() < <Exception type>()

As these APIs are usually used in except block of handling another
exception this can cause hard to find and debug bugs.

(Bitbake rev: c5a48931ac8db9e56f978c50861c19d0d0c808e3)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-15 08:35:06 +01:00
..
tts bitbake: toaster: fix wrong usage of print_exc and format_exc 2016-06-15 08:35:06 +01:00
README bitbake: toaster/contrib: adding TTS squashed patch 2015-05-14 18:04:10 +01:00

README

contrib directory for toaster

This directory holds code that works with Toaster, without being an integral part of the Toaster project.
It is intended for testing code, testing fixtures, tools for Toaster, etc.

NOTE: This directory is NOT a Python module.