Skip to content

BF: Fixed crash when clearEvents(device_label=None)#6669

Merged
peircej merged 1 commit intopsychopy:devfrom
mdcutone:dev-bf-iohub-nonetype-error-quickfix
Jul 8, 2024
Merged

BF: Fixed crash when clearEvents(device_label=None)#6669
peircej merged 1 commit intopsychopy:devfrom
mdcutone:dev-bf-iohub-nonetype-error-quickfix

Conversation

@mdcutone
Copy link
Member

@mdcutone mdcutone commented Jul 4, 2024

Fixes a crash that occurs when passing None as the argument for psychopy.iohub.client.ioHubConnection.clearEvents(). New code checks the type before calling .lower() on the value.

@peircej peircej merged commit 903d60d into psychopy:dev Jul 8, 2024
@mdcutone mdcutone deleted the dev-bf-iohub-nonetype-error-quickfix branch July 11, 2024 15:32
@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