Skip to content

Commit c2d1147

Browse files
committed
BF: the loading of sound in prefs was crashing dlg if invalid backend
because the wrong error type was being caught
1 parent 620999d commit c2d1147

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

psychopy/app/preferencesDlg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def __init__(self, parent, name, value, spec):
384384
for thisDevName in devs:
385385
if thisDevName not in options:
386386
options.append(thisDevName)
387-
except DependencyError:
387+
except ValueError:
388388
pass
389389
else:
390390
options = spec.replace("option(", "").replace("'", "")

0 commit comments

Comments
 (0)