tecuts commited on
Commit
3c719d0
·
verified ·
1 Parent(s): fbd5998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -109,8 +109,12 @@ async def track_dl():
109
  result = {"url": dl_url}
110
  return jsonify(result)
111
  else:
112
- result = {"error": "Failed to fetch the track"}
113
- return jsonify(result)
 
 
 
 
114
 
115
 
116
 
 
109
  result = {"url": dl_url}
110
  return jsonify(result)
111
  else:
112
+ raise HTTPException(
113
+ status_code=429,
114
+ detail={
115
+ "error": "Failed to Fetch the Track."
116
+ }
117
+ )
118
 
119
 
120