Skip to content

Commit

Permalink
Merge pull request #428 from earney/issue_145
Browse files Browse the repository at this point in the history
fix issue 145.  raise Exception when concatenate method != chain or c…
  • Loading branch information
Zulko authored Feb 20, 2017
2 parents 3d91ddd + 1bb1e3c commit 35b4e5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moviepy/video/compositing/concatenate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def make_frame(t):
result = CompositeVideoClip( [c.set_start(t).set_pos('center')
for (c, t) in zip(clips, tt)],
size = (w, h), bg_color=bg_color, ismask=ismask)
else:
raise Exception("Moviepy Error: The 'method' argument of "
"concatenate_videoclips must be 'chain' or 'compose'")

result.tt = tt

Expand Down

0 comments on commit 35b4e5e

Please sign in to comment.