aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2011-06-14 16:44:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-15 11:08:43 +0100
commitdbf5f42b06bef81749b13aa99945cc1292a6676d (patch)
tree04b6a3bdb3b4dfcae58ad0e233eb700317736984 /lib/bb/server/process.py
parent9bff182a4ba9571679985b45b309990a6eddad14 (diff)
downloadbitbake-dbf5f42b06bef81749b13aa99945cc1292a6676d.tar.gz
make exception handling syntax consistent
Update exception handling syntax to use the modern style: except ExcType as localvar Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 44b8e4d49..5c1044dd5 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -64,7 +64,7 @@ class EventAdapter():
def send(self, event):
try:
self.queue.put(event)
- except Exception, err:
+ except Exception as err:
print("EventAdapter puked: %s" % str(err))
@@ -168,7 +168,7 @@ class ProcessServer(Process):
exitcode = 0
finally:
util._exit_function()
- except SystemExit, e:
+ except SystemExit as e:
if not e.args:
exitcode = 1
elif type(e.args[0]) is int: