aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 23:13:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-03 12:24:10 +0100
commit343187c57e1459b0e57f90463843782f3a3a8443 (patch)
treeebc449058e3634cad4d0dbb93f50963fecd531cb
parent91699f366d24480ff3b19faec78fb9f3181b3e14 (diff)
downloadbitbake-343187c57e1459b0e57f90463843782f3a3a8443.tar.gz
cookerdata: Fix exception raise statements
Lets use valid python even if it the original happens to work. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cookerdata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 48953a830..91cc4347f 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -300,13 +300,13 @@ class CookerDataBuilder(object):
self.data_hash = data_hash.hexdigest()
except (SyntaxError, bb.BBHandledException):
- raise bb.BBHandledException
+ raise bb.BBHandledException()
except bb.data_smart.ExpansionError as e:
logger.error(str(e))
- raise bb.BBHandledException
+ raise bb.BBHandledException()
except Exception:
logger.exception("Error parsing configuration files")
- raise bb.BBHandledException
+ raise bb.BBHandledException()
# Create a copy so we can reset at a later date when UIs disconnect
self.origdata = self.data