summaryrefslogtreecommitdiff
path: root/test/vpn-property
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpn-property')
-rwxr-xr-xtest/vpn-property10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/vpn-property b/test/vpn-property
index 2bafa1ad..d05f4c7a 100755
--- a/test/vpn-property
+++ b/test/vpn-property
@@ -61,6 +61,12 @@ if (argc < 3):
print " %s = %s" % (key, val)
elif (argc < 4):
- connection.ClearProperty(sys.argv[2])
+ try:
+ connection.ClearProperty(sys.argv[2])
+ except dbus.DBusException, error:
+ print "%s: %s" % (error._dbus_error_name, error.message)
else:
- connection.SetProperty(sys.argv[2], sys.argv[3])
+ try:
+ connection.SetProperty(sys.argv[2], sys.argv[3])
+ except dbus.DBusException, error:
+ print "%s: %s" % (error._dbus_error_name, error.message)