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')
|
||||
try:
|
||||
sms_iface.Send(msg_dict)
|
||||
except:
|
||||
print "Sending message failed"
|
||||
finally:
|
||||
modem.Enable(False)
|
||||
except Exception, e:
|
||||
print "Sending message failed: %s" % e
|
||||
|
||||
|
Reference in New Issue
Block a user