From d13f0ac614f1d1e2ef2c8ddc71cbfcf76a8dc3f2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 21 May 2016 12:29:16 +0100 Subject: meta: Update to modern exception syntax Update older exception syntax to modern one required by python 3. Compatible with python 2.7. Signed-off-by: Richard Purdie --- meta/lib/oe/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/utils.py') diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index d1dfbfb95d..32d61794ee 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -264,7 +264,7 @@ class ThreadedWorker(Thread): try: func(self, *args, **kargs) - except Exception, e: + except Exception as e: print(e) finally: self.tasks.task_done() -- cgit 1.2.3-korg