Skip to content

Commit

Permalink
Fix TextClip crash when txt is not provided (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Renaud G authored May 30, 2020
1 parent fc2e057 commit 7203c4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `IndexError` in `vfx.freeze`, `vfx.time_mirror` and `vfx.time_symmetrize` [#1124]
- Using `rotate()` with a `ColorClip` no longer crashes [#1139]
- `AudioFileClip` would not generate audio identical to the original file [#1108]
- Fixed `TypeError` when using `filename` instead of `txt` parameter in `TextClip` [#1201]
- Several issues resulting from incorrect time values due to floating point errors [#1195], for example:
- Blank frames at the end of clips [#210]
- Sometimes getting `IndexError: list index out of range` when using `concatenate_videoclips` [#646]
Expand Down
4 changes: 2 additions & 2 deletions moviepy/video/VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,9 @@ def __init__(
self.stroke_color = stroke_color

if remove_temp:
if os.path.exists(tempfilename):
if tempfilename is not None and os.path.exists(tempfilename):
os.remove(tempfilename)
if os.path.exists(temptxt):
if temptxt is not None and os.path.exists(temptxt):
os.remove(temptxt)

@staticmethod
Expand Down

0 comments on commit 7203c4e

Please sign in to comment.