diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-12 08:22:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-01 15:28:23 +0100 |
commit | b19a4c5166303b1fa680582adf63e6a5564bfb4c (patch) | |
tree | 5f6ac8e8e47a7cd69194160caf89bd8af9d3420f /lib/bb/data_smart.py | |
parent | d0f904d407f57998419bd9c305ce53e5eaa36b24 (diff) | |
download | bitbake-b19a4c5166303b1fa680582adf63e6a5564bfb4c.tar.gz |
data_smart: Simplify ExpansionError exception
This seemingly convoluted syntax doesn't work in python3. Instead
use the chained exception handling syntax which appears to make more
sense here.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r-- | lib/bb/data_smart.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 2a61386d8..25c412c1a 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -397,8 +397,7 @@ class DataSmart(MutableMapping): except bb.parse.SkipRecipe: raise except Exception as exc: - exc_class, exc, tb = sys.exc_info() - raise ExpansionError, ExpansionError(varname, s, exc), tb + raise ExpansionError(varname, s, exc) from exc varparse.value = s |