Skip to content

Conversation

@mh105
Copy link
Contributor

@mh105 mh105 commented Jun 12, 2024

I added a logging error warning in #6538 if the specified speaker index is out of bounds, but I forgot to consider that the indices may skip numbers so they could exceed the length of profiles. This BF uses not in a list comprehension to get around that. Sorry about that!

@mh105
Copy link
Contributor Author

mh105 commented Jun 12, 2024

Although when I accidentally triggered the error logging, I noticed that it shows up in stdout as DEPRECATED instead of ERROR. Perhaps I shouldn't be using logging.error() and should use something else? @TEParsons

@TEParsons
Copy link
Contributor

I think DEPRECATED rather than ERROR is a bug in how Runner/Coder display log messages, probably because the constants DEPRECATED and ERROR have the same value. logging.error() is the correct function, we need to fix it further up.

@mh105
Copy link
Contributor Author

mh105 commented Jun 13, 2024

Sounds good. Could you merge this when you get a chance? It'll fix the indexing issue I introduced in the previous PR. Thanks!

@TEParsons TEParsons merged commit a5470ac into psychopy:release Jun 13, 2024
@mh105 mh105 deleted the release-speaker-index-report branch June 14, 2024 03:54
@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.

3 participants