Skip to content

Commit

Permalink
BF: the loading of sound in prefs was crashing dlg if invalid backend
Browse files Browse the repository at this point in the history
because the wrong error type was being caught
  • Loading branch information
peircej committed Dec 4, 2017
1 parent 620999d commit c2d1147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/app/preferencesDlg.py
Expand Up @@ -384,7 +384,7 @@ def __init__(self, parent, name, value, spec):
for thisDevName in devs: for thisDevName in devs:
if thisDevName not in options: if thisDevName not in options:
options.append(thisDevName) options.append(thisDevName)
except DependencyError: except ValueError:
pass pass
else: else:
options = spec.replace("option(", "").replace("'", "") options = spec.replace("option(", "").replace("'", "")
Expand Down

0 comments on commit c2d1147

Please sign in to comment.