bitbake: main: Handle RuntimeError exception in list_extension_modules

This exception was triggered in toaster from recent changes and is completely
breaking the whole of bitbake. Add the exception to the list so at least only
toaster is affected.

(Bitbake rev: f64def7cb6069dc1134fcd546bb59e4030c7376f)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Randy Witt
2015-08-20 14:00:36 -07:00
committed by Richard Purdie
parent a01a33b178
commit a3d228a484

View File

@@ -60,7 +60,7 @@ def list_extension_modules(pkg, checkattr):
continue
try:
module = __import__(pkg.__name__, fromlist=[modulename])
except (ImportError, SystemExit):
except (ImportError, SystemExit, RuntimeError):
# If we can't import it, it's not valid
continue
module_if = getattr(module, modulename)