Skip to content

BF: catch AttributeError for sound.getDevices() when opening PreferenceDlg#6522

Merged
peircej merged 2 commits intopsychopy:releasefrom
mh105:release-prefdlg-sound-devices
Jun 7, 2024
Merged

BF: catch AttributeError for sound.getDevices() when opening PreferenceDlg#6522
peircej merged 2 commits intopsychopy:releasefrom
mh105:release-prefdlg-sound-devices

Conversation

@mh105
Copy link
Contributor

@mh105 mh105 commented Jun 3, 2024

When opening the preference window with conda installed psychopy application on macOS, not catching the AttributeError triggers an error of the problem and shuts down the psychopy software. Explicitly catching this type of error here allows the preference window to properly open even when PTB doesn't import correctly on macOS.

This is cherry-picked from #6436, now PR into release.

@TEParsons TEParsons requested a review from mdcutone June 6, 2024 13:18
@peircej peircej merged commit bc4290e into psychopy:release Jun 7, 2024
@mh105 mh105 deleted the release-prefdlg-sound-devices branch June 7, 2024 16:11
@peircej peircej added the 🐞 bug Issue describes a bug (crash or error) or undefined behavior. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants