From 5990dff635feeb0177eb55852d259496e5ef25a9 Mon Sep 17 00:00:00 2001 From: take0x <89313929+take0x@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:26:35 +0900 Subject: [PATCH] Fix attribute check --- moviepy/audio/AudioClip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moviepy/audio/AudioClip.py b/moviepy/audio/AudioClip.py index 5811088b1..644eb50fc 100644 --- a/moviepy/audio/AudioClip.py +++ b/moviepy/audio/AudioClip.py @@ -230,7 +230,7 @@ def write_audiofile( """ if not fps: - if not self.fps: + if hasattr(self, "fps"): fps = 44100 else: fps = self.fps