summaryrefslogtreecommitdiffstats
path: root/test/disable-call-forwarding
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2014-03-11 17:39:19 +0100
committerDenis Kenzior <denkenz@gmail.com>2014-03-11 19:32:46 -0500
commit0393a41e3589380b701dc73fc15fa90a24d7e55a (patch)
treec8d5fae96cf6bc24271937cffd8489c298758431 /test/disable-call-forwarding
parent0c1fcd2b50908bda607fce70c796033e33832b11 (diff)
downloadofono-0393a41e3589380b701dc73fc15fa90a24d7e55a.tar.bz2
test: Make exceptions compatible with Python 3
Use "except Type as var" syntax to work with both Python >= 2.6 and Python 3.
Diffstat (limited to 'test/disable-call-forwarding')
-rwxr-xr-xtest/disable-call-forwarding2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/disable-call-forwarding b/test/disable-call-forwarding
index a88821dc..1e6ec208 100755
--- a/test/disable-call-forwarding
+++ b/test/disable-call-forwarding
@@ -41,7 +41,7 @@ if __name__ == "__main__":
try:
cf.DisableAll(type, timeout = 100)
- except dbus.DBusException, e:
+ except dbus.DBusException as e:
print("Unable to DisableAll %s" % e)
sys.exit(1);