[oe-commits] [bitbake] 09/23: data/event/siggen: Fix various exceptions [FIXME]

git at git.openembedded.org git at git.openembedded.org
Fri May 20 09:13:38 UTC 2016


rpurdie pushed a commit to branch python3
in repository bitbake.

commit 9765b9febb6bb65bfe86577a17b5ffc88f736767
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu May 12 08:17:32 2016 +0100

    data/event/siggen: Fix various exceptions [FIXME]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/data.py   | 1 +
 lib/bb/event.py  | 3 ++-
 lib/bb/siggen.py | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/bb/data.py b/lib/bb/data.py
index 48d990d..60b2033 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -410,6 +410,7 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d):
         deps -= set(varflags.get("vardepsexclude", "").split())
     except Exception as e:
         bb.warn("Exception during build_dependencies for %s" % key)
+        bb.warn(str(e))
         raise
     return deps, value
     #bb.note("Variable %s references %s and calls %s" % (key, str(deps), str(execs)))
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 6fb3712..023300b 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -157,7 +157,8 @@ def fire_ui_handlers(event, d):
                 _ui_handlers[h].event.sendpickle((pickle.dumps(event)))
              else:
                 _ui_handlers[h].event.send(event)
-        except:
+        except Exception as e:
+            print(str(e))
             errors.append(h)
     for h in errors:
         del _ui_handlers[h]
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index db3daef..f951020 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -149,8 +149,9 @@ class SignatureGeneratorBasic(SignatureGenerator):
 
         try:
             taskdeps = self._build_data(fn, d)
-        except:
+        except Exception as e:
             bb.warn("Error during finalise of %s" % fn)
+            bb.error(str(e))
             raise
 
         #Slow but can be useful for debugging mismatched basehashes

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list