zarox commited on
Commit
cf813e6
·
1 Parent(s): caa956c
Files changed (1) hide show
  1. app.py +1 -0
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)