test: print sent SMS message index on success

This commit is contained in:
Dan Williams
2012-01-18 18:07:45 -06:00
parent 04e87e70ff
commit fc3fd7b983

View File

@@ -82,7 +82,8 @@ if validity:
sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS')
try:
sms_iface.Send(msg_dict)
indexes = sms_iface.Send(msg_dict)
print "Message index: %d" % indexes[0]
except Exception, e:
print "Sending message failed: %s" % e