Skip to content

fix: add missing except block and __main__ guard in export_audio.py (closes #83)#100

Open
botbikamordehai2-sketch wants to merge 1 commit into
NVIDIA:mainfrom
botbikamordehai2-sketch:fix/issue-83-1779958925
Open

fix: add missing except block and __main__ guard in export_audio.py (closes #83)#100
botbikamordehai2-sketch wants to merge 1 commit into
NVIDIA:mainfrom
botbikamordehai2-sketch:fix/issue-83-1779958925

Conversation

@botbikamordehai2-sketch
Copy link
Copy Markdown

What

The main() function in export_audio.py opens a try block that calls audio_export() but the file ends without a corresponding except/finally block. This incomplete try statement causes a SyntaxError when Python parses the file, making the script completely non-functional.

Additionally, the if __name__ == '__main__' guard and main() invocation are missing, meaning the script cannot be run directly.

Fix

  • Added the missing except Exception block with proper error handling using the already-imported traceback and sys modules
  • Added sys.exit(1) on error and the if __name__ == '__main__': main() guard

Closes #83

@botbikamordehai2-sketch botbikamordehai2-sketch requested a review from a team May 28, 2026 09:02
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.

Qwen3-30B-A3B-GPTQ-Int4 export failed

1 participant