From f64def7cb6069dc1134fcd546bb59e4030c7376f Mon Sep 17 00:00:00 2001 From: Randy Witt Date: Thu, 20 Aug 2015 14:00:36 -0700 Subject: 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. Signed-off-by: Randy Witt Signed-off-by: Richard Purdie --- lib/bb/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb/main.py') diff --git a/lib/bb/main.py b/lib/bb/main.py index c98cf444b..910cd6444 100755 --- a/lib/bb/main.py +++ b/lib/bb/main.py @@ -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) -- cgit 1.2.3-korg