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-ss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test-ss') diff --git a/test/test-ss b/test/test-ss index 7bd18af8..2c80806e 100755 --- a/test/test-ss +++ b/test/test-ss @@ -22,7 +22,7 @@ ss = dbus.Interface(bus.get_object('org.ofono', modem), try: ss_type, properties = ss.Initiate(ss_code, timeout=100) -except dbus.DBusException, e: +except dbus.DBusException as e: print("Unable to perform operation: %s" % e) sys.exit(1); -- cgit v1.2.3