Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -187,6 +187,7 @@ async def audio_handler(event):
|
|
187 |
@client.on(events.NewMessage(incoming=True))
|
188 |
async def audio_editor(event):
|
189 |
file_path = f"downloads/{event.sender.id}_audio.mp3"
|
|
|
190 |
try:
|
191 |
# Load the audio file using your AudioFusion class
|
192 |
audio = Fusion.loadSound(file_path)
|
|
|
187 |
@client.on(events.NewMessage(incoming=True))
|
188 |
async def audio_editor(event):
|
189 |
file_path = f"downloads/{event.sender.id}_audio.mp3"
|
190 |
+
if not os.path.exists(file_path): return
|
191 |
try:
|
192 |
# Load the audio file using your AudioFusion class
|
193 |
audio = Fusion.loadSound(file_path)
|