Skip to content

Fix config typo, replace exec(), and improve bare except clauses#15

Open
hobostay wants to merge 1 commit intoNetflix:mainfrom
hobostay:fix/typos-and-code-quality
Open

Fix config typo, replace exec(), and improve bare except clauses#15
hobostay wants to merge 1 commit intoNetflix:mainfrom
hobostay:fix/typos-and-code-quality

Conversation

@hobostay
Copy link
Copy Markdown

Summary

  • Fix typo in config/quadmask_cogvideox.py: temproal_multidiffusion_stridetemporal_multidiffusion_stride (consistent with default_cogvideox.py)
  • Replace unsafe exec(open(...).read()) with direct subprocess call in convert_all_scenarios_for_characters.py
  • Replace bare except: clauses with specific exception types across 5 files:
    • ImportError for module import failures
    • Exception for Blender/PyBullet cleanup
    • (AttributeError, TypeError) for Blender node attribute copying
  • Fix extra whitespace ray = Noneray = None

Test plan

  • Verify typo fix matches default_cogvideox.py naming convention
  • Verify exec() replacement produces equivalent command invocation
  • Verify all except changes preserve original error-handling semantics

🤖 Generated with Claude Code

- Fix typo: temproal_multidiffusion_stride -> temporal_multidiffusion_stride
  in config/quadmask_cogvideox.py (consistent with default_cogvideox.py)
- Replace unsafe exec(open(...).read()) with direct subprocess call
  in convert_all_scenarios_for_characters.py
- Replace bare except: with specific exception types:
  - ImportError for module imports (train.py, train_warped_noise.py, api_multi_nodes.py)
  - Exception for Blender/PyBullet cleanup (kubric_variable_objects.py)
  - (AttributeError, TypeError) for Blender node attribute copying (render_paired_videos_blender_quadmask.py)
- Fix extra whitespace in ray =  None assignment (api_multi_nodes.py)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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