summaryrefslogtreecommitdiff
path: root/test/mm-send-sms.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mm-send-sms.py')
-rwxr-xr-xtest/mm-send-sms.py7
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
+