mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Refactor: Add conditional import for moviepy to handle missing dependency gracefully
This commit is contained in:
parent
d82f4e53c0
commit
44ffe8fd2f
@ -9,7 +9,11 @@ import py7zr
|
||||
import tempfile
|
||||
import os
|
||||
from pydub import AudioSegment
|
||||
import moviepy.editor as mp
|
||||
|
||||
try:
|
||||
import moviepy.editor as mp
|
||||
except ImportError:
|
||||
print("moviepy is NOT installed in this environment")
|
||||
|
||||
class FileConvert(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
|
Loading…
x
Reference in New Issue
Block a user