diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2014-03-11 17:39:19 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-03-11 19:32:46 -0500 |
commit | 0393a41e3589380b701dc73fc15fa90a24d7e55a (patch) | |
tree | c8d5fae96cf6bc24271937cffd8489c298758431 /test/test-cbs | |
parent | 0c1fcd2b50908bda607fce70c796033e33832b11 (diff) | |
download | ofono-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-cbs')
-rwxr-xr-x | test/test-cbs | 2 |
1 files changed, 1 insertions, 1 deletions
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("-----------------------------------------------------------") |