diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-21 12:29:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-21 22:26:33 +0100 |
commit | 3ddde5f32afe9225994df607f6b8dfcc58f6bdc7 (patch) | |
tree | 852bf239ca9347f8c78b3f1ccc7433f8ba36517d /meta/classes/utility-tasks.bbclass | |
parent | 01d07f328fb2644169eda5dbffaf2b6117696959 (diff) | |
download | poky-3ddde5f32afe9225994df607f6b8dfcc58f6bdc7.tar.gz |
meta: Update to modern exception syntax
Update older exception syntax to modern one required by python 3.
Compatible with python 2.7.
(From OE-Core rev: d13f0ac614f1d1e2ef2c8ddc71cbfcf76a8dc3f2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utility-tasks.bbclass')
-rw-r--r-- | meta/classes/utility-tasks.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index 5bcfd0b72c..7bc584abb9 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass | |||
@@ -46,7 +46,7 @@ python do_checkuri() { | |||
46 | try: | 46 | try: |
47 | fetcher = bb.fetch2.Fetch(src_uri, d) | 47 | fetcher = bb.fetch2.Fetch(src_uri, d) |
48 | fetcher.checkstatus() | 48 | fetcher.checkstatus() |
49 | except bb.fetch2.BBFetchException, e: | 49 | except bb.fetch2.BBFetchException as e: |
50 | raise bb.build.FuncFailed(e) | 50 | raise bb.build.FuncFailed(e) |
51 | } | 51 | } |
52 | 52 | ||