From 0393a41e3589380b701dc73fc15fa90a24d7e55a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 11 Mar 2014 17:39:19 +0100 Subject: test: Make exceptions compatible with Python 3 Use "except Type as var" syntax to work with both Python >= 2.6 and Python 3. --- test/test-cbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test-cbs') diff --git a/test/test-cbs b/test/test-cbs index 2e7884b2..8d8438f8 100755 --- a/test/test-cbs +++ b/test/test-cbs @@ -103,7 +103,7 @@ def set_topics(cbs): try: print("Setting Cell Broadcast topics...") cbs.SetProperty("Topics", topics); - except dbus.DBusException, e: + except dbus.DBusException as e: print("Unable to set topic: %s" % e) print("-----------------------------------------------------------") -- cgit v1.2.3