test: print out error if sending SMS fails

This commit is contained in:
Dan Williams
2012-01-18 13:24:35 -06:00
parent 6789a87a58
commit 1655b3d323

View File

@@ -55,7 +55,6 @@ msg_dict = dbus.Dictionary({ dbus.String('number') : dbus.String(number),
sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS') sms_iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS')
try: try:
sms_iface.Send(msg_dict) sms_iface.Send(msg_dict)
except: except Exception, e:
print "Sending message failed" print "Sending message failed: %s" % e
finally:
modem.Enable(False)