summaryrefslogtreecommitdiffstats
path: root/test/test-stk-menu
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/test-stk-menu
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/test-stk-menu')
-rwxr-xr-xtest/test-stk-menu2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-stk-menu b/test/test-stk-menu
index eaba9940..7952abde 100755
--- a/test/test-stk-menu
+++ b/test/test-stk-menu
@@ -238,7 +238,7 @@ class StkAgent(dbus.service.Object):
if key == 't':
raise EndSession("User wishes to terminate"
" session")
- except Exception, exc:
+ except Exception as exc:
print(exc)
@dbus.service.method("org.ofono.SimToolkitAgent",