diff options
Diffstat (limited to 'test/mm-send-sms.py')
-rwxr-xr-x | test/mm-send-sms.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/mm-send-sms.py b/test/mm-send-sms.py index d4f9da63d..6eb8eb75d 100755 --- a/test/mm-send-sms.py +++ b/test/mm-send-sms.py @@ -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 + |