Skip to content

Fix: use except Empty instead of bare except in AudioBatchIterator#296

Open
ekkoitac wants to merge 1 commit intomicrosoft:mainfrom
ekkoitac:main
Open

Fix: use except Empty instead of bare except in AudioBatchIterator#296
ekkoitac wants to merge 1 commit intomicrosoft:mainfrom
ekkoitac:main

Conversation

@ekkoitac
Copy link
Copy Markdown

The bare 'except:' clause in AudioBatchIterator.next masks all exceptions including system-exiting ones like KeyboardInterrupt and SystemExit. Only queue.Empty should be caught when the queue has no data.

Fixes #286

The bare 'except:' clause in AudioBatchIterator.__next__ masks all exceptions
including system-exiting ones like KeyboardInterrupt and SystemExit.
Only queue.Empty should be caught when the queue has no data.

Fixes microsoft#286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant