All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake:main.py: Handle RuntimeError exception in list_extension_modules
@ 2015-08-20 21:00 Randy Witt
  2015-08-20 22:51 ` Olof Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Witt @ 2015-08-20 21:00 UTC (permalink / raw)
  To: bitbake-devel

It seems to just be an exception that was missed that can occur during
import and would cause bitbake to completely fail.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
 bitbake/lib/bb/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index c98cf44..910cd64 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/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)
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-21 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 21:00 [PATCH] bitbake:main.py: Handle RuntimeError exception in list_extension_modules Randy Witt
2015-08-20 22:51 ` Olof Johansson
2015-08-21  8:07   ` Paul Eggleton
2015-08-21 16:53     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.