]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Don't generate an error in 'text' entry constructor
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:33 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 04:44:07 +0000 (12:44 +0800)
commit5203258c6e149ab865e337c00437a909abf3b5b4
tree07beb595fc1e22bf20df62cf89dd2c2b7be9c5ed
parent8d7f06bbbef16f172cd5e9c4923cdcebe16b8980
binman: Don't generate an error in 'text' entry constructor

It is not good practice to raise an exception in a constructor. In this
case the 'text' entry may not actually be used, if -i is used to filter
out the images that get built.

Move the exception to where the data is actually used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
tools/binman/etype/text.py