Skip to content

fix: replace bare except clauses with Exception#86

Open
haosenwang1018 wants to merge 1 commit intoFunAudioLLM:mainfrom
haosenwang1018:fix/bare-excepts-and-file-handle
Open

fix: replace bare except clauses with Exception#86
haosenwang1018 wants to merge 1 commit intoFunAudioLLM:mainfrom
haosenwang1018:fix/bare-excepts-and-file-handle

Conversation

@haosenwang1018
Copy link

Replace 3 bare except: with except Exception: in tools/utils.py and tools/whisper_mix_normalize.py to avoid catching SystemExit/KeyboardInterrupt.

- tools/utils.py: exception in text processing
- tools/whisper_mix_normalize.py: pyopenjtalk.g2p fallback (2 sites)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant