tecuts commited on
Commit
683494d
·
verified ·
1 Parent(s): ada6fd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ def download_spotify_track(track_id: str):
97
  return {"download_url": download_url}
98
  except Exception as e:
99
  logger.error(f"Error downloading Spotify track: {e}")
100
- raise HTTPException(status_code=500, detail=str(e))
101
 
102
 
103
  @app.get("/")
 
97
  return {"download_url": download_url}
98
  except Exception as e:
99
  logger.error(f"Error downloading Spotify track: {e}")
100
+ raise HTTPException(status_code=500, detail="Failed to download Spotify track. Please try again later.")
101
 
102
 
103
  @app.get("/")