test: print out error if sending SMS fails
This commit is contained in:
@@ -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)
|
|
||||||
|
Reference in New Issue
Block a user