mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
@@ -300,13 +300,13 @@ class CookerDataBuilder(object):
|
|||||||
|
|
||||||
self.data_hash = data_hash.hexdigest()
|
self.data_hash = data_hash.hexdigest()
|
||||||
except (SyntaxError, bb.BBHandledException):
|
except (SyntaxError, bb.BBHandledException):
|
||||||
raise bb.BBHandledException
|
raise bb.BBHandledException()
|
||||||
except bb.data_smart.ExpansionError as e:
|
except bb.data_smart.ExpansionError as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
raise bb.BBHandledException
|
raise bb.BBHandledException()
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Error parsing configuration files")
|
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
|
# Create a copy so we can reset at a later date when UIs disconnect
|
||||||
self.origdata = self.data
|
self.origdata = self.data
|
||||||
|
|||||||
Reference in New Issue
Block a user