Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Randy Witt <randy.e.witt@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH] bitbake:main.py: Handle RuntimeError exception in list_extension_modules
Date: Thu, 20 Aug 2015 14:00:36 -0700	[thread overview]
Message-ID: <1440104436-12491-1-git-send-email-randy.e.witt@linux.intel.com> (raw)

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



             reply	other threads:[~2015-08-20 21:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 21:00 Randy Witt [this message]
2015-08-20 22:51 ` [PATCH] bitbake:main.py: Handle RuntimeError exception in list_extension_modules Olof Johansson
2015-08-21  8:07   ` Paul Eggleton
2015-08-21 16:53     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440104436-12491-1-git-send-email-randy.e.witt@linux.intel.com \
    --to=randy.e.witt@linux.intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox