Chrunos commited on
Commit
20ab8e9
·
verified ·
1 Parent(s): e843d84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -93,11 +93,7 @@ def extract_track_info(entities_by_unique_id: dict, platform: str):
93
 
94
  @app.route('/match', methods=['POST'])
95
  async def match():
96
- try:
97
- data = await request.json()
98
- except Exception as e:
99
- logging.error(f"Error parsing JSON: {e}")
100
- raise HTTPException(status_code=400, detail="Invalid JSON")
101
  track_url = data.get('url')
102
 
103
  if not track_url:
 
93
 
94
  @app.route('/match', methods=['POST'])
95
  async def match():
96
+ data = request.json()
 
 
 
 
97
  track_url = data.get('url')
98
 
99
  if not track_url: