summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2008-11-24 22:00:31 +0000
committersamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2008-11-24 22:00:31 +0000
commit82aea5bdef0820308a6b0ee6a6303bf8c7c54c38 (patch)
treee242c40af23fffc4f66cf03a3021302477411f29
parentf9a6032580c3153ada6b93d54cd43aab0d459e46 (diff)
downloadnohands-82aea5bdef0820308a6b0ee6a6303bf8c7c54c38.tar.gz
Report device probe failures more gracefully.
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@40 126591fb-c623-4b62-a76d-97a8e4f34109
-rwxr-xr-xdata/hfconsole.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/hfconsole.in b/data/hfconsole.in
index 2bbce73..318be38 100755
--- a/data/hfconsole.in
+++ b/data/hfconsole.in
@@ -1209,12 +1209,13 @@ class HfConsole:
model = self['ConfigDriverDevList'].get_model()
model.clear()
drivername = self['ConfigDriver'].get_active_text()
+ devlist = None
if not drivername:
return
try:
devlist = self.soundio.ProbeDevices(drivername)
except dbus.exceptions.DBusException, (ex):
- print 'Device probe failed: ' + str(ex) + '\n'
+ print 'Device probe failed: ' + str(ex)
if devlist:
for x in devlist:
model.append([x[0], x[1]])