diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 23:13:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-05 11:45:16 +0100 |
commit | e2afb73ccb3eb37397a62c9aa5e8fcc178a6dc2e (patch) | |
tree | ceda61043b4e3f7826922ede5f90f23b610a6d96 /bitbake/lib/bb/cookerdata.py | |
parent | 16f820a2a82c12184e7ea0734a61c45a22e82530 (diff) | |
download | poky-e2afb73ccb3eb37397a62c9aa5e8fcc178a6dc2e.tar.gz |
bitbake: cookerdata: Fix exception raise statements
Lets use valid python even if it the original happens to work.
(Bitbake rev: 343187c57e1459b0e57f90463843782f3a3a8443)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 48953a830b..91cc4347f6 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -300,13 +300,13 @@ class CookerDataBuilder(object): | |||
300 | 300 | ||
301 | self.data_hash = data_hash.hexdigest() | 301 | self.data_hash = data_hash.hexdigest() |
302 | except (SyntaxError, bb.BBHandledException): | 302 | except (SyntaxError, bb.BBHandledException): |
303 | raise bb.BBHandledException | 303 | raise bb.BBHandledException() |
304 | except bb.data_smart.ExpansionError as e: | 304 | except bb.data_smart.ExpansionError as e: |
305 | logger.error(str(e)) | 305 | logger.error(str(e)) |
306 | raise bb.BBHandledException | 306 | raise bb.BBHandledException() |
307 | except Exception: | 307 | except Exception: |
308 | logger.exception("Error parsing configuration files") | 308 | logger.exception("Error parsing configuration files") |
309 | raise bb.BBHandledException | 309 | raise bb.BBHandledException() |
310 | 310 | ||
311 | # Create a copy so we can reset at a later date when UIs disconnect | 311 | # Create a copy so we can reset at a later date when UIs disconnect |
312 | self.origdata = self.data | 312 | self.origdata = self.data |