summaryrefslogtreecommitdiff
path: root/test/test-service.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2011-12-13 11:55:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-12-13 11:55:44 +0000
commit14225c74b5bd75cf6c4cda3647341dc20214e6b8 (patch)
tree681f90d0f96ac02d393a74f9312de33d1c6f7cb3 /test/test-service.py
parent959ce518a3b5b8794b9813bac82c64540c21fc31 (diff)
downloaddbus-python-14225c74b5bd75cf6c4cda3647341dc20214e6b8.tar.gz
Use Python 3 syntax to catch exceptions
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'test/test-service.py')
-rwxr-xr-xtest/test-service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-service.py b/test/test-service.py
index 51865eb..bd80f26 100755
--- a/test/test-service.py
+++ b/test/test-service.py
@@ -267,7 +267,7 @@ class TestObject(dbus.service.Object, TestInterface):
return_cb(variant)
return False # do not run again
- except Exception, e:
+ except Exception as e:
error_cb(e)
@dbus.service.method(IFACE, in_signature='', out_signature='s', sender_keyword='sender')