summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-18 13:24:35 -0600
committerDan Williams <dcbw@redhat.com>2012-01-18 13:24:35 -0600
commit1655b3d323d914f0ba45ebc438e66f655730dc2e (patch)
tree7a1efde097d0d371823c2138007a9a15ea1dce40
parent6789a87a5826638472b88d600b99414ce3daa5bd (diff)
downloadModemManager-1655b3d323d914f0ba45ebc438e66f655730dc2e.tar.gz
test: print out error if sending SMS fails
-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
+