diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-04-18 11:27:02 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-04-19 11:30:52 +0200 |
commit | 5d20c30a8e1f21d082f0f57b9367fc28dc2300d6 (patch) | |
tree | 891bc838167b86f3f7bdaa4075b2afd6f4b5a163 /test/test-session | |
parent | 0ca2425ba20b4b9bd5b08fdff17614d564afc151 (diff) | |
download | connman-5d20c30a8e1f21d082f0f57b9367fc28dc2300d6.tar.gz connman-5d20c30a8e1f21d082f0f57b9367fc28dc2300d6.tar.bz2 connman-5d20c30a8e1f21d082f0f57b9367fc28dc2300d6.zip |
test-session: Handle all net.connman.Error.Failed exceptions
Diffstat (limited to 'test/test-session')
-rwxr-xr-x | test/test-session | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test-session b/test/test-session index 2ded3d97..9784122f 100755 --- a/test/test-session +++ b/test/test-session @@ -147,7 +147,7 @@ class SessionApplication(dbus.service.Object): "net.connman.Session") except dbus.DBusException, e: - if e.get_dbus_name() in ['net.connman.Error.InvalidArguments']: + if e.get_dbus_name() in ['net.connman.Error.Failed']: print e.get_dbus_message() return traceback.print_exc() @@ -175,8 +175,7 @@ class SessionApplication(dbus.service.Object): try: self.session.Connect() except dbus.DBusException, e: - if e.get_dbus_name() in ['net.connman.Error.InProgress', - 'net.connman.Error.AlreadyConnected']: + if e.get_dbus_name() in ['net.connman.Error.Failed']: print e.get_dbus_message() return traceback.print_exc() @@ -189,8 +188,7 @@ class SessionApplication(dbus.service.Object): try: self.session.Disconnect() except dbus.DBusException, e: - if e.get_dbus_name() in ['net.connman.Error.AlreadyDisabled', - 'net.connman.Error.NotConnected']: + if e.get_dbus_name() in ['net.connman.Error.Failed']: print e.get_dbus_message() return traceback.print_exc() @@ -204,7 +202,7 @@ class SessionApplication(dbus.service.Object): val = self.type_convert(key, value) self.session.Change(key, val) except dbus.DBusException, e: - if e.get_dbus_name() in ['net.connman.Error.InvalidArguments']: + if e.get_dbus_name() in ['net.connman.Error.Failed']: print e.get_dbus_message() return traceback.print_exc() |